MCPcopy Create free account
hub / github.com/pytorch/pytorch / read_csv

Method read_csv

benchmarks/dynamo/runner.py:677–694  ·  view source on GitHub ↗
(self, output_filename)

Source from the content-addressed store, hash-verified

675 plt.savefig(f"{self.output_dir}/{title}.png")
676
677 def read_csv(self, output_filename):
678 if self.has_header(output_filename):
679 return pd.read_csv(output_filename)
680 else:
681 return pd.read_csv(
682 output_filename,
683 names=[
684 "dev",
685 "name",
686 "batch_size",
687 "speedup",
688 "abs_latency",
689 "compilation_latency",
690 "compression_ratio",
691 ],
692 header=None,
693 engine="python",
694 )
695
696 def parse(self):
697 self.extract_df("accuracy", "accuracy")

Callers 15

extract_dfMethod · 0.95
measure_forward_passFunction · 0.80
evaluate_metricsFunction · 0.80
mainFunction · 0.80
get_train_val_dataFunction · 0.80
get_author_mapFunction · 0.80
get_file_mapFunction · 0.80
process_metrics.pyFile · 0.80
check_perf_csvFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

has_headerMethod · 0.80

Tested by

no test coverage detected