Skip to content

Commit 850b9cd

Browse files
committed
Fixed dpctl.tensor.result_type function for scalars
1 parent 375bec2 commit 850b9cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_manipulation_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ def result_type(*arrays_and_dtypes):
731731
for X in arrays_and_dtypes:
732732
if isinstance(X, dpt.usm_ndarray):
733733
dtypes.append(X.dtype)
734-
elif np.isscalar(X) or isinstance(X, (tuple, list, range)):
734+
elif np.isscalar(X):
735735
dtypes.append(X)
736736
else:
737737
dtype = dpt.dtype(X)

0 commit comments

Comments
 (0)