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

Function main

caffe2/python/examples/lmdb_create_example.py:91–103  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89
90
91def main():
92 parser = argparse.ArgumentParser(
93 description="Example LMDB creation"
94 )
95 parser.add_argument("--output_file", type=str, default=None,
96 help="Path to write the database to",
97 required=True)
98
99 args = parser.parse_args()
100 checksum = create_db(args.output_file)
101
102 # For testing reading:
103 read_db_with_caffe2(args.output_file, checksum)
104
105
106if __name__ == '__main__':

Callers 1

Calls 3

create_dbFunction · 0.85
read_db_with_caffe2Function · 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…