Skip to content

Commit 916faed

Browse files
committed
2nd fix for range start with scalar
1 parent 2a926e9 commit 916faed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

keras/src/backend/openvino/numpy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ def median(x, axis=None, keepdims=False):
10891089
ov_opset.constant([0], Type.i32).output(0),
10901090
).output(0)
10911091
axis_as_range = ov_opset.range(
1092-
ov_opset.constant([0], Type.i32).output(0),
1092+
ov_opset.constant(0, Type.i32).output(0),
10931093
x_rank,
10941094
ov_opset.constant([1], Type.i32).output(0),
10951095
"i32",
@@ -1143,7 +1143,7 @@ def median(x, axis=None, keepdims=False):
11431143
ov_opset.constant([0], Type.i32).output(0),
11441144
).output(0)
11451145
axis_as_range = ov_opset.range(
1146-
ov_opset.constant([0], Type.i32).output(0),
1146+
ov_opset.constant(0, Type.i32).output(0),
11471147
x_rank,
11481148
ov_opset.constant([1], Type.i32).output(0),
11491149
"i32",

0 commit comments

Comments
 (0)