We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e98eb3 commit fafc4d7Copy full SHA for fafc4d7
src/qonnx/custom_op/general/quant.py
@@ -135,7 +135,7 @@ def resolve_rounding_mode(mode_string):
135
"""Resolve the rounding mode string of Quant and Trunc ops
136
to the corresponding numpy functions."""
137
normalized_mode_string = mode_string.upper()
138
- if normalized_mode_string == "ROUND" or normalized_mode_string == "HALF_TO_EVEN":
+ if normalized_mode_string == "ROUND" or normalized_mode_string == "HALF_EVEN":
139
return np.round
140
elif normalized_mode_string == "CEIL":
141
return np.ceil
0 commit comments