--is_output_adjust_hw_layout

Description

Sets the data type and format of the network outputs to FP16 and NC1HWC0, respectively.

See Also

  • Use this option in conjunction with --out_nodes. If this option is set to true, the data type and format of the --out_nodes outputs are set to FP16 and NC1HWC0, respectively.
  • This option cannot be used when --framework or -f is set to 1 to use the MindSpore network model.

Arguments

Arguments: false or true

Default: false

Suggestions and Benefits

None

Examples

When there is only one out_nodes, the usage example is provided below:

--framework=3 --model=${HOME}/module/resnet50_tensorflow_1.7.pb --output=${HOME}/test/out/tf_resnet50 --is_output_adjust_hw_layout=true  --out_nodes="prob:0"

When there are two or more out_nodes, the usage example involving two such nodes is provided below:

--framework=3 --model=${HOME}/module/resnet50_tensorflow_1.7.pb --output=${HOME}/test/out/tf_resnet50 --is_output_adjust_hw_layout=true,true  --out_nodes="prob:0;prob:1"

Dependencies and Restrictions

None