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 938a184 commit bc13355Copy full SHA for bc13355
dpnp/dpnp_iface_indexing.py
@@ -40,6 +40,7 @@
40
# pylint: disable=protected-access
41
42
import operator
43
+from collections.abc import Iterable
44
45
import dpctl.tensor as dpt
46
import dpctl.tensor._tensor_impl as ti
@@ -130,7 +131,7 @@ def _build_choices_list(choices):
130
131
132
if dpnp.is_supported_array_type(choices):
133
choices = [dpnp.get_usm_ndarray(chc) for chc in dpnp.unstack(choices)]
- elif isinstance(choices, (tuple, list)):
134
+ elif isinstance(choices, Iterable):
135
choices_ = []
136
for chc in choices:
137
chc_ = dpnp.get_usm_ndarray(chc)
0 commit comments