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

Function main

caffe2/experiments/python/net_construct_bench.py:136–145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134
135
136def main():
137 # TODO: use argv
138 parser = argparse.ArgumentParser(
139 description="Caffe2: Benchmark for net construction"
140 )
141 parser.add_argument("--num_gpus", type=int, default=1,
142 help="Number of GPUs.")
143 args = parser.parse_args()
144
145 Create(args)
146
147
148if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

CreateFunction · 0.85
parse_argsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…