microsoft/onnxconverter-common

Add bounds warning to FP16 conversion script

kevinch-nv opened this issue · 1 comments

There should be a warning thrown when FP32 values outside of FP16 representative range are clamped when converted to FP16 to notify the user of potential unwanted behavior.

Currently the conversion function silently clamps the values.

https://github.com/microsoft/onnxconverter-common/blob/fc2a187db8d6a47acac57953b765eb357caa4a5b/onnxconverter_common/float16.py

add warning message in PR: #246