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 27a5d7b commit 3600e70Copy full SHA for 3600e70
onnx_diagnostic/helpers.py
@@ -56,7 +56,9 @@ def size_type(dtype: Any) -> int:
56
return 1
57
if dtype in {TensorProto.COMPLEX128}:
58
return 16
59
- raise AssertionError(f"Unable to return the element size for type {dtype}")
+ raise AssertionError(
60
+ f"Unable to return the element size for type {onnx_dtype_name(dtype)}"
61
+ )
62
63
if dtype == np.float64 or dtype == np.int64:
64
return 8
0 commit comments