--output

Applicable Products

All processors

Description

  • For a model trained on an open-source framework:

    Specifies the path (including the file name) of the generated offline model, for example, $HOME/module/out/tf_resnet50. The name of the generated model file is automatically suffixed with .om, for example, tf_resnet50.om or tf_resnet50_<os>_<arch>.om. If the name of an .om file contains an OS and architecture, the file can be used only in an operating environment with such OS and architecture.

  • For a single-operator description file (JSON format):

    This option sets the directory of the generated single-operator model, for example, $HOME/singleop/out/op_model. The default name of the generated model file follows this format: SN_Operator type_Input description(dataType_format_shape)_Output description(dataType_format_shape). To use a custom file name, specify it via the name attribute in the single-operator description file.

See Also

  • If the name of the offline model file (.om) converted using the atc command contains the OS and architecture information, but the OS and architecture are inconsistent with those in the model operating environment, use this option together with the --host_env_os and --host_env_cpu to set the OS type and architecture in the model operating environment.

Arguments

Argument:

  • Directory (including the file name) of an offline model converted from an open-source framework.
  • Directory (including the file name) of a single-operator model converted from a single-operator description file (.json).

Format: The directory (including the file name) can contain letters, digits, underscores (_), hyphens (-), periods (.), and Chinese characters.

Suggestions and Benefits

None

Example

  • Caffe network:
    --output=$HOME/module/out/caffe_resnet50
  • TensorFlow network:
    --output=$HOME/module/out/tf_resnet50
  • ONNX network:
    --output=$HOME/module/out/onnx_resnet50
  • Single-operator description file:
    --output=$HOME/singleop/out/op_model

Dependencies and Restrictions

None