run_n_iterations() — pytorch Function Reference
Architecture documentation for the run_n_iterations() function in common.py from the pytorch codebase.
Entity Profile
Dependency Diagram
graph TD 316b98a5_2d78_5681_cc76_6024cfcb4191["run_n_iterations()"] 79f63331_206c_51dc_bfd1_4fd84b939754["check_accuracy()"] 79f63331_206c_51dc_bfd1_4fd84b939754 -->|calls| 316b98a5_2d78_5681_cc76_6024cfcb4191 0f41377a_e71d_fd3c_1974_a0ef9ec1158e["check_tolerance()"] 0f41377a_e71d_fd3c_1974_a0ef9ec1158e -->|calls| 316b98a5_2d78_5681_cc76_6024cfcb4191 style 316b98a5_2d78_5681_cc76_6024cfcb4191 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
benchmarks/dynamo/common.py lines 2070–2074
def run_n_iterations(self, mod, inputs, model_iter_fn):
n = self.args.iterations
for _ in range(n - 1):
model_iter_fn(mod, inputs, collect_outputs=False)
return model_iter_fn(mod, inputs, collect_outputs=True)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does run_n_iterations() do?
run_n_iterations() is a function in the pytorch codebase.
What calls run_n_iterations()?
run_n_iterations() is called by 2 function(s): check_accuracy, check_tolerance.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free