Skip to content

Commit df028d0

Browse files
fixxx
1 parent ea0a40f commit df028d0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

keras/src/backend/openvino/numpy.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,7 @@ def diagonal(x, offset=0, axis1=0, axis2=1):
3333
ov_opset.add(ov_opset.constant(int(axis2), dtype="i64"), rank_val), rank_val
3434
)
3535

36-
# If axis1 == axis2, behavior should match numpy error; Keras tests don't hit this,
37-
# so we skip explicit assert to keep graph-friendly.
3836

39-
# Build permutation to move axis1, axis2 to the end
40-
# perm = [all axes except axis1/axis2 in order] + [axis1, axis2]
4137
arange = ov_opset.range(
4238
ov_opset.constant(0, dtype="i64"), rank_val, ov_opset.constant(1, dtype="i64")
4339
)
@@ -773,11 +769,6 @@ def diag(x, k=0):
773769
raise NotImplementedError("`diag` is not supported with openvino backend")
774770

775771

776-
def diagonal(x, offset=0, axis1=0, axis2=1):
777-
raise NotImplementedError(
778-
"`diagonal` is not supported with openvino backend"
779-
)
780-
781772

782773
def diff(a, n=1, axis=-1):
783774
if n == 0:

0 commit comments

Comments
 (0)