Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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.
Example: -isrc "i:input0|is:1,3,224,224"

-on, --outputtensors

Output tensor names(comma separated)

(Optional) Used to specify multiple output tensors
Example: -on output0,output1

-odst, --odest

Output tensor attribute strings containing tensor name (o) and shape(os)

(Optional) Used to specify output tensor shape overrides.
Use multiple -odst entries for multiple output tensors.
Example: -odst "o:output0|os:1,1000"

-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.
See https://github.com/onnx/onnx/tree/master/onnx/optimizer/passes .
Example: -t Default

-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.

...