MCPcopy Index your code
hub / github.com/pytorch/examples / profiling_tracer.py

File profiling_tracer.py

fx/profiling_tracer.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1"""
2This file demonstrates using a custom FX Tracer to override
3the behavior of `torch.autograd.profiler.record_function` and
4make profiler ranges appear in FX-traced code. This is done

Callers

nothing calls this directly

Calls 4

ProfilerTracerClass · 0.85
traceMethod · 0.80
FooClass · 0.70
fFunction · 0.70

Tested by

no test coverage detected