Command Line Options
Flag | Option | Description |
---|---|---|
-m, --model | Input model | (Required) Path to input model |
-o, --outputproto | Output model | (Optional) Path to output model. Defaults to {basename}_modified.onnx |
-isrc, --inputsources | Input tensor attribute strings containing tensor name (i) and shape(is) | (Optional) Used to specify input tensor shape overrides. Use multiple -isrc entries for multiple input tensors. |
-on, --outputtensors | Output tensor names(comma separated) | (Optional) Used to specify multiple output tensors |
-odst, --odest | Output tensor attribute strings containing tensor name (o) and shape(os) | (Optional) Used to specify output tensor shape overrides. |
-t, --transforms | Transforms | Comma-separated string denoting order of transforms to be applied to the ONNX graph. Available options include custom transforms (see below table) as well as all built-in onnx.optimizer transforms. |
-l, --log_dir | Log directory | (Optional) Directory to save log files |
-d, --debug | Logging verbosity level | (Optional) Set logging verbosity. Integer value in range [0, 3], where 0: ERROR and 3: DEBUG |
Custom Transforms
Conversions are applied to the original network in the order specified.
...