Skip to content

Commit c19c9b4

Browse files
committed
Fixed repeat error syntax for `repeats array with ndim > 1
1 parent 4a59cfb commit c19c9b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dpctl/tensor/_manipulation_functions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,8 @@ def repeat(x, repeats, axis=None):
973973
elif isinstance(repeats, dpt.usm_ndarray):
974974
if repeats.ndim > 1:
975975
raise ValueError(
976-
"`repeats` array must be 0- or 1-dimensional, got"
977-
"{repeats.ndim}"
976+
"`repeats` array must be 0- or 1-dimensional, got "
977+
f"{repeats.ndim}"
978978
)
979979
exec_q = dpctl.utils.get_execution_queue(
980980
(x.sycl_queue, repeats.sycl_queue)

0 commit comments

Comments
 (0)