--out_nodes

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Description

Specifies output nodes (operators) of a network model or specifies the names of the outputs of a network model.

If the output nodes are not specified, the output layer of the model is used by default. If they are specified, information of the specified operators is output. To check the output of intermediate operators, use this option to specify the operators of a specific layer to be output during model conversion. After the model is converted, you can view the parameter settings of the specified operators at the end of the OM offline model file or the JSON file converted from the OM offline model file.

See Also

When --framework is set to 1, this option is invalid in the MindSpore framework, but the model will be successfully converted.

Argument

Argument:

  • Node names (node_name) in the network model

    If multiple output nodes are specified, the names of the output nodes must be enclosed in double quotation marks ("") and separated by semicolons (;). node_name must be the node name in the original model. The number after the colon indicates the output index. For example, node_name1:0 indicates output 0 of the node named node_name1.

  • Top names of specified output nodes (Caffe model only)

    If multiple output nodes are specified, the top names of the output nodes must be enclosed in double quotation marks ("") and separated by semicolons (;). The argument must be the top name at a layer in the Caffe model before model build. If multiple layers have the same topname, the topname of the last layer is used.

  • Names of network model outputs. (Applicable only for ONNX network models.)

    If multiple outputs are specified, the names of the outputs must be enclosed in double quotation marks ("") and separated by semicolons (;). output must be the output of the network model.

Restrictions:

  1. The passed argument is one of the preceding arguments.
  2. Only Caffe networks support top names argument.
  3. Only ONNX networks support output names argument.

Suggestions and Benefits

None

Example

  • Node names (node_name) in the network model
    --out_nodes="node_name1:0;node_name1:1;node_name2:0"
  • Top names (topname) of a layer
    --out_nodes="topname0;topname1;topname2"
  • Names of network model outputs.
    --out_nodes="output1;output2;output3"

Dependencies and Restrictions

None