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 b5265a8 commit cbfec84Copy full SHA for cbfec84
dpctl/tensor/_ctors.py
@@ -203,7 +203,7 @@ def _usm_ndarray_from_suai(obj):
203
strides=sua_iface.get("strides", None),
204
)
205
_data_field = sua_iface["data"]
206
- if isinstance(_data_field, tuple) and len(_data_field) == 2:
+ if isinstance(_data_field, tuple) and len(_data_field) > 1:
207
ro_field = _data_field[1]
208
else:
209
ro_field = False
0 commit comments