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 eff36de commit 797c86bCopy full SHA for 797c86b
dpnp/dpnp_iface_indexing.py
@@ -129,13 +129,7 @@ def _build_choices_list(choices):
129
if dpnp.is_supported_array_type(choices):
130
queues = [choices.sycl_queue]
131
usm_types = [choices.usm_type]
132
- choices_sh = choices.shape
133
- if len(choices_sh) > 1:
134
- choices = [
135
- dpnp.get_usm_ndarray(chc) for chc in dpnp.unstack(choices)
136
- ]
137
- else:
138
- choices = [choices]
+ choices = [dpnp.get_usm_ndarray(chc) for chc in dpnp.unstack(choices)]
139
elif isinstance(choices, (tuple, list)):
140
queues = []
141
usm_types = []
0 commit comments