Home / Function/ print_summary() — pytorch Function Reference

print_summary() — pytorch Function Reference

Architecture documentation for the print_summary() function in common.py from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  bf029f88_db70_e8df_06de_66d5b0f31c56["print_summary()"]
  df80f087_87ce_4dd9_9608_6e91a50bec23["print_summary()"]
  df80f087_87ce_4dd9_9608_6e91a50bec23 -->|calls| bf029f88_db70_e8df_06de_66d5b0f31c56
  9bf8449e_2d7f_c370_514b_b3c7bf20f8e1["run_one_model()"]
  9bf8449e_2d7f_c370_514b_b3c7bf20f8e1 -->|calls| bf029f88_db70_e8df_06de_66d5b0f31c56
  c9be2096_e6d7_2374_ad2e_a6e33f435ada["run()"]
  c9be2096_e6d7_2374_ad2e_a6e33f435ada -->|calls| bf029f88_db70_e8df_06de_66d5b0f31c56
  df80f087_87ce_4dd9_9608_6e91a50bec23["print_summary()"]
  bf029f88_db70_e8df_06de_66d5b0f31c56 -->|calls| df80f087_87ce_4dd9_9608_6e91a50bec23
  621801d2_c814_c83d_5fe1_d5605ee2a2fc["print_summary_table()"]
  bf029f88_db70_e8df_06de_66d5b0f31c56 -->|calls| 621801d2_c814_c83d_5fe1_d5605ee2a2fc
  5752cb25_7ac2_c2bf_6619_ca3cbd78adbb["summarize_graph_break()"]
  bf029f88_db70_e8df_06de_66d5b0f31c56 -->|calls| 5752cb25_7ac2_c2bf_6619_ca3cbd78adbb
  style bf029f88_db70_e8df_06de_66d5b0f31c56 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/common.py lines 605–617

def print_summary(filename, print_dataframe=False):
    if not (filename and os.path.exists(filename)):
        return
    data = pd.read_csv(filename)
    if "tag" in data.columns:
        for tag in data.tag.unique():
            if tag == "0.0000":
                continue  # This happens for failed runs
            print(f"\nSummary for tag={tag}:")
            print_summary_table(data[data.tag == tag], print_dataframe=print_dataframe)
    else:
        print_summary_table(data, print_dataframe=print_dataframe)
    summarize_graph_break(filename)

Subdomains

Frequently Asked Questions

What does print_summary() do?
print_summary() is a function in the pytorch codebase.
What does print_summary() call?
print_summary() calls 3 function(s): print_summary, print_summary_table, summarize_graph_break.
What calls print_summary()?
print_summary() is called by 3 function(s): print_summary, run, run_one_model.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free