main() — pytorch Function Reference
Architecture documentation for the main() function in dynamo_guard_build.py from the pytorch codebase.
Entity Profile
Relationship Graph
Source Code
benchmarks/dynamo/microbenchmarks/dynamo_guard_build.py lines 39–46
def main():
opt_fn = torch.compile(fn, backend="eager")
start = time.perf_counter()
opt_fn(torch.randn(3))
end = time.perf_counter()
print(f"total time: {end - start:.2f}s")
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free