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 e7e1fb5 commit 30f4facCopy full SHA for 30f4fac
array_api_compat/common/_helpers.py
@@ -84,13 +84,13 @@ def get_namespace(*xs, _use_compat=True):
84
namespaces.add(torch)
85
else:
86
# TODO: Support Python scalars?
87
- raise ValueError("The input is not a supported array type")
+ raise TypeError("The input is not a supported array type")
88
89
if not namespaces:
90
- raise ValueError("Unrecognized array input")
+ raise TypeError("Unrecognized array input")
91
92
if len(namespaces) != 1:
93
- raise ValueError(f"Multiple namespaces for array inputs: {namespaces}")
+ raise TypeError(f"Multiple namespaces for array inputs: {namespaces}")
94
95
xp, = namespaces
96
0 commit comments