We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c4866b commit 03afdccCopy full SHA for 03afdcc
keras/src/backend/openvino/numpy.py
@@ -520,10 +520,7 @@ def dot(x, y):
520
x = get_ov_output(x, element_type)
521
y = get_ov_output(y, element_type)
522
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
- ):
+ if x.get_partial_shape().rank == 0 or y.get_partial_shape().rank == 0:
527
return OpenVINOKerasTensor(ov_opset.multiply(x, y).output(0))
528
return OpenVINOKerasTensor(ov_opset.matmul(x, y, False, False).output(0))
529
@@ -1206,4 +1203,4 @@ def slogdet(x):
1206
1203
def argpartition(x, kth, axis=-1):
1207
1204
raise NotImplementedError(
1208
1205
"`argpartition` is not supported with openvino backend"
1209
- )
+ )
0 commit comments