You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: array_api_strict/_manipulation_functions.py
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -93,6 +93,8 @@ def repeat(
93
93
raiseRuntimeError("repeat() with repeats as an array requires data-dependent shapes, but the data_dependent_shapes flag has been disabled for array-api-strict")
94
94
ifrepeats.dtypenotin_integer_dtypes:
95
95
raiseTypeError("The repeats array must have an integer dtype")
96
+
ifx.device!=repeats.device:
97
+
raiseRuntimeError(f"Arrays from two different devices ({x.device} and {repeats.device}) can not be combined.")
0 commit comments