Skip to content

Commit 3600e70

Browse files
committed
f
1 parent 27a5d7b commit 3600e70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

onnx_diagnostic/helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ def size_type(dtype: Any) -> int:
5656
return 1
5757
if dtype in {TensorProto.COMPLEX128}:
5858
return 16
59-
raise AssertionError(f"Unable to return the element size for type {dtype}")
59+
raise AssertionError(
60+
f"Unable to return the element size for type {onnx_dtype_name(dtype)}"
61+
)
6062

6163
if dtype == np.float64 or dtype == np.int64:
6264
return 8

0 commit comments

Comments
 (0)