Skip to content

Commit 6a70ac5

Browse files
committedAug 30, 2024
exc
1 parent ada0b51 commit 6a70ac5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎onnx_array_api/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def np_dtype_to_tensor_dtype(dtype: Any):
99
"""
1010
try:
1111
dt = helper.np_dtype_to_tensor_dtype(dtype)
12-
except KeyError:
12+
except (KeyError, ValueError):
1313
if dtype == np.float32:
1414
dt = TensorProto.FLOAT
1515
elif dtype == np.float64:

0 commit comments

Comments
 (0)