(self, x)
| 15 | # Setup: a module with `record_function` |
| 16 | class Foo(torch.nn.Module): |
| 17 | def forward(self, x): |
| 18 | with torch.profiler.record_function('foo'): |
| 19 | return torch.relu(x) |
| 20 | |
| 21 | f = Foo() |
| 22 | x = torch.randn(5, 3, 2) |
nothing calls this directly
no outgoing calls
no test coverage detected