MCPcopy Create free account
hub / github.com/pytorch/pytorch / test_profiling

Method test_profiling

test/test_throughput_benchmark.py:77–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.linear_test(TwoLayerNetModule)
76
77 def test_profiling(self):
78 with TemporaryFileName() as fname:
79 self.linear_test(TwoLayerNetModule, profiler_output_path=fname)
80
81
82if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

linear_testMethod · 0.95
TemporaryFileNameFunction · 0.90

Tested by

no test coverage detected