ai-content-maker/.venv/Lib/site-packages/torch/_dynamo/hooks.py

13 lines
292 B
Python
Raw Normal View History

2024-05-03 04:18:51 +03:00
import dataclasses
from typing import Callable, Optional
from torch._guards import GuardsSet
from .types import GuardFail
@dataclasses.dataclass
class Hooks:
guard_export_fn: Optional[Callable[[GuardsSet], None]] = None
guard_fail_fn: Optional[Callable[[GuardFail], None]] = None