MCPcopy Index your code
hub / github.com/OpenGVLab/InternVL / main

Function main

classification/export.py:114–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112
113
114def main():
115 args, cfg = get_args()
116
117 if args.onnx or args.trt:
118 torch2onnx(args, cfg)
119 print('torch -> onnx: succeess')
120
121 if args.trt:
122 onnx2trt(args)
123 print('onnx -> trt: success')
124 check(args, cfg)
125
126
127if __name__ == '__main__':

Callers 1

export.pyFile · 0.70

Calls 4

torch2onnxFunction · 0.85
onnx2trtFunction · 0.85
checkFunction · 0.85
get_argsFunction · 0.70

Tested by

no test coverage detected