File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -525,16 +525,16 @@ def dpnp_matmul(
525
525
x2_shape = x2 .shape
526
526
if out is not None :
527
527
for i in range (x1_ndim - 2 ):
528
- if x1_shape [i ] != out_shape [i ]:
528
+ if tmp_shape [i ] != out_shape [i ]:
529
529
if not appended_axes :
530
530
raise ValueError (
531
531
"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 ]} ."
533
533
)
534
534
elif len (appended_axes ) == 1 :
535
535
raise ValueError (
536
536
"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 ]} ."
538
538
)
539
539
res_shape = tuple (tmp_shape ) + (x1_shape [- 2 ], x2_shape [- 1 ])
540
540
You can’t perform that action at this time.
0 commit comments