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 ada0b51 commit 6a70ac5Copy full SHA for 6a70ac5
onnx_array_api/_helpers.py
@@ -9,7 +9,7 @@ def np_dtype_to_tensor_dtype(dtype: Any):
9
"""
10
try:
11
dt = helper.np_dtype_to_tensor_dtype(dtype)
12
- except KeyError:
+ except (KeyError, ValueError):
13
if dtype == np.float32:
14
dt = TensorProto.FLOAT
15
elif dtype == np.float64:
0 commit comments