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

Method trace

exir/tracer.py:481–491  ·  view source on GitHub ↗

Traces the given graph module.

(  # pyre-fixme[14,15]
        self,
        root: Callable[..., Value],
        concrete_args: Tuple[Value, ...] = (),
        in_spec: Optional[TreeSpec] = None,
    )

Source from the content-addressed store, hash-verified

479 return TRACER
480
481 def trace( # pyre-fixme[14,15]
482 self,
483 root: Callable[..., Value],
484 concrete_args: Tuple[Value, ...] = (),
485 in_spec: Optional[TreeSpec] = None,
486 ) -> Value:
487 """
488 Traces the given graph module.
489 """
490 with using_tracer(self):
491 return self._trace(root, concrete_args=concrete_args, in_spec=in_spec)
492
493 def _trace(
494 self,

Callers 2

flattened_dispatch_traceFunction · 0.95
generate_context_binaryFunction · 0.45

Calls 2

_traceMethod · 0.95
using_tracerFunction · 0.85

Tested by

no test coverage detected