Skip to content

Commit 6a70ac5

Browse files
committed
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy