--output

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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 naming rule of the generated model file is SN_Operator type_Input description(dataType_format_shape)_Output description(dataType_format_shape). If you do not use the default naming rule, you can specify the model file name by using the name attribute in the single-operator description file.

See Also

If the name of the OM model file generated by running the atc command contains an OS and architecture, but the OS and architecture are inconsistent with those in the model operating environment, you need to use this option in conjunction with --host_env_os and --host_env_cpu to set the OS type and architecture of the model operating environment.

Argument

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

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