MCPcopy Create free account
hub / github.com/Tencent/TNN / parse_args

Function parse_args

tools/caffe2onnx/src/args_parser.py:18–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def parse_args():
19 parser = argparse.ArgumentParser(description='convert caffe model to onnx')
20
21 parser.add_argument(dest='proto_file',
22 action='store',
23 help='the path for prototxt file, the file name must end with .prototxt')
24
25 parser.add_argument(dest='caffe_model_file',
26 action='store',
27 help='the path for caffe model file, the file name must end with .caffemodel!')
28
29 parser.add_argument('-o',
30 dest='onnx_file',
31 action='store',
32 help='the path for generate onnx file')
33 args = parser.parse_args()
34 return args

Callers 1

caffe2onnx.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected