--output_type
Description
Sets the output data type of a network or an output node.
See Also
- To specify the output type of an output node, use this option in conjunction with --out_nodes.
- This option is mutually exclusive with --model_path.
Arguments
Arguments:
- Output data type of a network:
- FP32: recommended for classification and object detection networks
- UINT8: recommended for image super-resolution networks for better inference performance
- FP16: recommended for classification and object detection networks. It is usually used when the output of one network is used as the input of another.
- INT8
After the model tuning is complete, the preceding data types are displayed as DT_FLOAT, DT_UINT8, DT_FLOAT16, or DT_INT8 in the corresponding .om model file.
- Output data type of an output node:
For example, --output_type="node1:0:FP16;node2:0:FP32", indicating that the output data type of node1 is set to FP16 and that of node2 is set to FP32. Enclose the whole argument in double quotation marks (""), and separate the nodes by semicolons (;).
Restrictions:
If the output data type of the network is not specified during model tuning, the data type of the operator output at the output layer of the original network model is used. If the type is specified, the type specified by this option is used and the type specified by --is_output_adjust_hw_layout does not take effect.
Suggestions and Benefits
None
Examples
--output_type=FP32
Dependencies and Restrictions
None