It seems Pow operator in tensorrt reduce the precision Automatically


I convert a onnx model to tensorrt.But found there is a “inf” result in a intermedia output from a Pow(2) operator. the dtype of the operator’s input and output tensor are all float32. Is seems precision reduced in operator Pow. How can I forbid the precision reduction?

convert log :

the result log:

the convert command line: trtexec --onnx="$onnx" \ --saveEngine="$engine_file" \ --verbose --explicitBatch --workspace=262144

tensorrt version : TensorRT v8204


Could you please try on the latest TensorRT version 8.4 EA. If still face this issue, please share with us the issue repro model/script and steps to try from our end.

Thank you.

Hi ,
We recommend you to check the supported features from the below link.

You can refer below link for all the supported operators list.
For unsupported operators, you need to create a custom plugin to support the operation