Skip to content

Commit ad0ba70

Browse files
committed
fix an error
1 parent 12b7f72 commit ad0ba70

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dpnp/dpnp_utils/dpnp_utils_linearalgebra.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,16 @@ def dpnp_matmul(
525525
x2_shape = x2.shape
526526
if out is not None:
527527
for i in range(x1_ndim - 2):
528-
if x1_shape[i] != out_shape[i]:
528+
if tmp_shape[i] != out_shape[i]:
529529
if not appended_axes:
530530
raise ValueError(
531531
"Output array could not be broadcast together with remapped shapes, "
532-
f"{x1_shape[:-2]} is different from {out_shape[:-2]}."
532+
f"{tmp_shape[:-2]} is different from {out_shape[:-2]}."
533533
)
534534
elif len(appended_axes) == 1:
535535
raise ValueError(
536536
"Output array could not be broadcast together with remapped shapes, "
537-
f"{x1_shape[:-2]} is different from {out_shape[:-1]}."
537+
f"{tmp_shape[:-2]} is different from {out_shape[:-1]}."
538538
)
539539
res_shape = tuple(tmp_shape) + (x1_shape[-2], x2_shape[-1])
540540

0 commit comments

Comments
 (0)