MCPcopy Create free account
hub / github.com/pytorch/executorch / no_dispatch

Function no_dispatch

exir/common.py:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17@contextmanager
18def no_dispatch() -> Generator[None, None, None]:
19 guard = torch._C._DisableTorchDispatch()
20 try:
21 yield
22 finally:
23 del guard
24
25
26def get_schema_for_operators(ops: List[str]) -> Dict[str, str]:

Callers 2

__repr__Method · 0.90
__torch_dispatch__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected