Skip to content

Commit b4c38f1

Browse files
Merge branch 'add_array_method' into gsoc2025
2 parents a821043 + 75647be commit b4c38f1

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
@@ -492,6 +492,9 @@ def __mod__(self, other):
492492
)
493493
return OpenVINOKerasTensor(ov_opset.mod(first, other).output(0))
494494

495+
def __array__(self):
496+
return convert_to_numpy(self)
497+
495498

496499
def ov_to_keras_type(ov_type):
497500
for _keras_type, _ov_type in OPENVINO_DTYPES.items():

0 commit comments

Comments
 (0)