Skip to content

Commit 208c3d5

Browse files
Merge branch 'add_array_method' into gsoc2025
2 parents bc73aea + 75647be commit 208c3d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

keras/src/backend/openvino/core.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,9 @@ def __mod__(self, other):
499499
)
500500
return OpenVINOKerasTensor(ov_opset.mod(first, other).output(0))
501501

502+
def __array__(self):
503+
return convert_to_numpy(self)
504+
502505

503506
def ov_to_keras_type(ov_type):
504507
for _keras_type, _ov_type in OPENVINO_DTYPES.items():

0 commit comments

Comments
 (0)