main() — pytorch Function Reference
Architecture documentation for the main() function in dynamo_microbenchmarks.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD a7d76bdc_05e5_b9c5_14f1_a81dd76cdc0c["main()"] 4dca3303_ae75_734d_70fa_a8f2ea37d9cf["symbolic_convert_overhead_stress_test()"] a7d76bdc_05e5_b9c5_14f1_a81dd76cdc0c -->|calls| 4dca3303_ae75_734d_70fa_a8f2ea37d9cf 06b41ef8_507b_a19a_2e0e_65bfc560e05c["profile()"] a7d76bdc_05e5_b9c5_14f1_a81dd76cdc0c -->|calls| 06b41ef8_507b_a19a_2e0e_65bfc560e05c style a7d76bdc_05e5_b9c5_14f1_a81dd76cdc0c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/microbenchmarks/dynamo_microbenchmarks.py lines 16–24
def main():
def fn():
torch._dynamo.reset()
symbolic_convert_overhead_stress_test(x, y, 100000)
x = torch.randn(16)
y = torch.randn(16)
t = min(timeit.repeat(fn, number=1, repeat=3))
print(f"symbolic_convert_overhead_stress_test: {t:.1f}s")
Domain
Subdomains
Source
Frequently Asked Questions
What does main() do?
main() is a function in the pytorch codebase.
What does main() call?
main() calls 2 function(s): profile, symbolic_convert_overhead_stress_test.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free