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 232860f commit fa397d2Copy full SHA for fa397d2
src/array_api_extra/_funcs.py
@@ -123,9 +123,6 @@ def expand_dims(
123
)
124
raise IndexError(err_msg)
125
axis = tuple(dim % ndim for dim in axis)
126
- if len(set(axis)) != len(axis):
127
- err_msg = "Duplicate dimensions specified in `axis`."
128
- raise ValueError(err_msg)
129
if len(set(axis)) != len(axis):
130
err_msg = "Duplicate dimensions specified in `axis`."
131
raise ValueError(err_msg)
0 commit comments