Skip to content

Commit 03afdcc

Browse files
author
Saif Mohammed
committed
Fix sytling issues
1 parent 7c4866b commit 03afdcc

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

keras/src/backend/openvino/numpy.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,7 @@ def dot(x, y):
520520
x = get_ov_output(x, element_type)
521521
y = get_ov_output(y, element_type)
522522
x, y = _align_operand_types(x, y, "dot()")
523-
if (
524-
x.get_partial_shape(0).rank == 0
525-
or y.get_partial_shape(0).rank == 0
526-
):
523+
if x.get_partial_shape().rank == 0 or y.get_partial_shape().rank == 0:
527524
return OpenVINOKerasTensor(ov_opset.multiply(x, y).output(0))
528525
return OpenVINOKerasTensor(ov_opset.matmul(x, y, False, False).output(0))
529526

@@ -1206,4 +1203,4 @@ def slogdet(x):
12061203
def argpartition(x, kth, axis=-1):
12071204
raise NotImplementedError(
12081205
"`argpartition` is not supported with openvino backend"
1209-
)
1206+
)

0 commit comments

Comments
 (0)