onnx->trt F16:Subnormal FP16 value detected

onnx->trt报的warning如下:

If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights. [10/12/2022-19:11:09] [TRT] [W] Weights [name=Conv_167 || Conv_170.weight] had the following issues when converted to FP16: [10/12/2022-19:11:09] [TRT] [W] - Subnormal FP16 values detected. [10/12/2022-19:11:09] [TRT] [W] If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights. [10/12/2022-19:11:09] [TRT] [W] Weights [name=Conv_167 || Conv_170.weight] had the following issues when converted to FP16: [10/12/2022-19:11:09] [TRT] [W] - Subnormal FP16 values detected. [10/12/2022-19:11:09] [TRT] [W] If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights. [10/12/2022-19:11:09] [TRT] [W] Weights [name=Conv_173 + PWN(PWN(Sigmoid_174), Mul_175).weight] had the following issues when converted to FP16: [10/12/2022-19:11:09] [TRT] [W] - Subnormal FP16 values detected. [10/12/2022-19:11:09] [TRT] [W] If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights. [10/12/2022-19:11:09] [TRT] [W] Weights [name=Conv_173 + PWN(PWN(Sigmoid_174), Mul_175).weight] had the following issues when converted to FP16: [10/12/2022-19:11:09] [TRT] [W] - Subnormal FP16 values detected. [10/12/2022-19:11:09] [TRT] [W] If this is not the desired behavior, please modify the weights or retrain with regularization to reduce the magnitude of the weights. [10/12/2022-19:11:09] [TRT] [W] Weights [name=Conv_173 + PWN(PWN(Sigmoid_174), Mul_175).weight] had the following issues when converted to FP16: [10/12/2022-19:11:09] [TRT] [W] - Subnormal FP16 values detected.

英伟达官方答复:如果不影响精度可以忽略

经验分享 程序员 微信小程序 职场和发展