I would expect to pass a dataType that corresponds to the precision used by my network, but the DeepStream code does this for INT8 (nvdsinfer_model_builder.cpp:654):
/* modelDataType should be FLOAT for INT8 */
modelDataType = nvinfer1::DataType::kFLOAT;
If you read the whole code, you’ll find that different branches will be selected according to different conditions. You should pass the dataType that corresponds to the precision of your network.
if (networkMode == NvDsInferNetworkMode_INT8)
.......
if (networkMode == NvDsInferNetworkMode_FP16)
.......
if (networkMode == NvDsInferNetworkMode_FP32)
Yeah, you can refer this code to set the kFLOAT when using INT8. If you encounter any problems when you run the pipeline, you can continue to open new topic on the forum.