Variable data_type is a function supported by the OMG tool. With this function, you do not need to modify a trained model for different input and output data types. When performing model conversion using the OMG tool, specify the input and output data type so that the model can be applicable to different scenarios.
Set input_type and output_type of OMG parameters to specify the input and output data types during model conversion.
Example:
./omg --model=./model.pb --framework=3 --output=./model --input_shape="inputs:1,512,512,1" --out_nodes="outputs:0" --input_type="inputs:FP16" --output_type="outputs:UINT8"