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

Method has_header

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

Source from the content-addressed store, hash-verified

615 self.mode = mode
616
617 def has_header(self, output_filename):
618 header_present = False
619 with open(output_filename) as f:
620 line = f.readline()
621 if "dev" in line:
622 header_present = True
623 return header_present
624
625
626class ParsePerformanceLogs(Parser):

Callers 1

read_csvMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected