-h |
--help |
|
show this help message and exit |
|
--input_onnx |
None |
Provide the original onnx file. |
|
--output_onnx |
fold.onnx |
Export the modified onnx file. |
|
--check_n |
3 |
Check whether the output is correct with n random inputs. |
|
--input_shape |
[] |
Overwrite input shapes if not set --dynamic-input-shape, otherwise used for generating random inputs in checking. Format: --input_shape name :shape . For example: --input_shape input1:[1,3,224,224] input2:[4] input3:[]. If omitted, uses the current model inputs. |
|
--input-data-path |
None |
input data, The value should be 'input_name1:xxx1.bin' 'input_name2:xxx2.bin ...', input data should be a binary data file. |
|
--skip-shape-inference |
|
Skip shape inference. Shape inference causes segfault on some large models. |
|
--dynamic-input-shape |
|
This option enables dynamic input shape support.'Shape' ops will not be eliminated in this case.Note that '--input_shape' is also needed for generating random inputs and checking equality. If 'dynamic_input_shape' is False, the input shape in simplified model will be overwritten by the value of 'input_shapes' param. |