Home / Function/ write_outputs() — pytorch Function Reference

write_outputs() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3473d1a5_c1f5_fc97_006e_79a1d3081bef["write_outputs()"]
  1bdb2766_1dfd_f7e0_5a58_c0b0c698068f["coverage_experiment()"]
  1bdb2766_1dfd_f7e0_5a58_c0b0c698068f -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  8d5b4cea_0c1f_6c73_230e_f6e909faa7c7["recompile_profiler_experiment()"]
  8d5b4cea_0c1f_6c73_230e_f6e909faa7c7 -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  252d25b3_f1f5_8378_1d89_3019fda40b3e["latency_experiment_summary()"]
  252d25b3_f1f5_8378_1d89_3019fda40b3e -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  04a3a4a6_8db3_854d_a893_02c9542bf9dd["speedup_experiment()"]
  04a3a4a6_8db3_854d_a893_02c9542bf9dd -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  1d4553c2_729a_ea9b_a587_db58802dca02["baselines()"]
  1d4553c2_729a_ea9b_a587_db58802dca02 -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  9fdf3e80_933d_ded9_76ca_8248ceccfcaf["xla()"]
  9fdf3e80_933d_ded9_76ca_8248ceccfcaf -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  79f63331_206c_51dc_bfd1_4fd84b939754["check_accuracy()"]
  79f63331_206c_51dc_bfd1_4fd84b939754 -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  0f41377a_e71d_fd3c_1974_a0ef9ec1158e["check_tolerance()"]
  0f41377a_e71d_fd3c_1974_a0ef9ec1158e -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  9bf8449e_2d7f_c370_514b_b3c7bf20f8e1["run_one_model()"]
  9bf8449e_2d7f_c370_514b_b3c7bf20f8e1 -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  7d8e78e3_8a0c_828f_ff82_254897550856["write_csv_when_exception()"]
  7d8e78e3_8a0c_828f_ff82_254897550856 -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  c9be2096_e6d7_2374_ad2e_a6e33f435ada["run()"]
  c9be2096_e6d7_2374_ad2e_a6e33f435ada -->|calls| 3473d1a5_c1f5_fc97_006e_79a1d3081bef
  abb63394_bfce_d4ac_0ee7_71617c357328["output_csv()"]
  3473d1a5_c1f5_fc97_006e_79a1d3081bef -->|calls| abb63394_bfce_d4ac_0ee7_71617c357328
  c587c38f_6fe9_50a0_5b10_6f8afc3d9600["output_json()"]
  3473d1a5_c1f5_fc97_006e_79a1d3081bef -->|calls| c587c38f_6fe9_50a0_5b10_6f8afc3d9600
  style 3473d1a5_c1f5_fc97_006e_79a1d3081bef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

benchmarks/dynamo/common.py lines 323–333

def write_outputs(filename, headers, row, upload_to_benchmark_db: bool = True):
    """
    Write both CSV and JSON outputs using the original CSV output interface
    """
    global disable_output
    if disable_output:
        return

    output_csv(filename, headers, row)
    if upload_to_benchmark_db:
        output_json(filename, headers, row)

Subdomains

Frequently Asked Questions

What does write_outputs() do?
write_outputs() is a function in the pytorch codebase.
What does write_outputs() call?
write_outputs() calls 2 function(s): output_csv, output_json.
What calls write_outputs()?
write_outputs() is called by 11 function(s): baselines, check_accuracy, check_tolerance, coverage_experiment, latency_experiment_summary, recompile_profiler_experiment, run, run_one_model, and 3 more.

Analyze Your Own Codebase

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

Try Supermodel Free