ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onnx-si Namespace Reference

Functions

 _help_exit (cmd_name)
 
 main ()
 

Function Documentation

◆ _help_exit()

onnx-si._help_exit (   cmd_name)
protected

Definition at line 22 of file onnx-si.py.

22def _help_exit(cmd_name):
23 print('Produce shape-infered ONNX file')
24 print('Usage: {0} [onnx_in_path] [onnx_out_path]'.format(cmd_name))
25 print('')
26 exit()
27
28

Referenced by main().

◆ main()

onnx-si.main ( void  )

Definition at line 29 of file onnx-si.py.

29def main():
30 if len(sys.argv) < 3:
31 _help_exit(os.path.basename(sys.argv[0]))
32
33 onnx.checker.check_model(sys.argv[1])
34 onnx.shape_inference.infer_shapes_path(sys.argv[1], sys.argv[2])
35
36
int main(void)

References _help_exit(), and main().

Referenced by main().