Code
Hub
Trending
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
""
"
2
This file demonstrates using a custom FX Tracer to override
3
the behavior of `torch.autograd.profiler.record_function` and
4
make profiler ranges appear in FX-traced code. This is done
Callers
nothing calls this directly
Calls
4
ProfilerTracer
Class · 0.85
trace
Method · 0.80
Foo
Class · 0.70
f
Function · 0.70
Tested by
no test coverage detected