Skip to content

Commit fafc4d7

Browse files
author
jvreca
committed
Removed the _TO_ to make it consitant with others
1 parent 7e98eb3 commit fafc4d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qonnx/custom_op/general/quant.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def resolve_rounding_mode(mode_string):
135135
"""Resolve the rounding mode string of Quant and Trunc ops
136136
to the corresponding numpy functions."""
137137
normalized_mode_string = mode_string.upper()
138-
if normalized_mode_string == "ROUND" or normalized_mode_string == "HALF_TO_EVEN":
138+
if normalized_mode_string == "ROUND" or normalized_mode_string == "HALF_EVEN":
139139
return np.round
140140
elif normalized_mode_string == "CEIL":
141141
return np.ceil

0 commit comments

Comments
 (0)