Skip to content

Commit 75647be

Browse files
[OpenVINO backend] add __array__ method
1 parent d55a767 commit 75647be

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)