fix: Syntax Error lgtm display in matrix/matrix_operation.py.

This commit is contained in:
Denis Trofimov 2019-09-20 23:20:49 +03:00
parent a2b5a90c11
commit 4c629b4ce1

View File

@ -123,7 +123,7 @@ def _verify_matrix_sizes(matrix_a, matrix_b):
shape += _shape(matrix_b)
if shape[0] != shape[2] or shape[1] != shape[3]:
raise ValueError(f"operands could not be broadcast together with shape "
f"({shape[0], shape[1]}), ({shape[2], shape[3]})")
f"({shape[0]}, {shape[1]}), ({shape[2]}, {shape[3]})")
return [shape[0], shape[2]], [shape[1], shape[3]]