We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17ca564 commit e8be790Copy full SHA for e8be790
keras/src/backend/openvino/core.py
@@ -499,6 +499,10 @@ def __len__(self):
499
assert ov_shape[0].is_static, "the first dimension must be static"
500
return ov_shape[0].get_length()
501
502
+ def __iter__(self):
503
+ for index in range(len(self)):
504
+ yield self[index]
505
+
506
def __bool__(self):
507
return bool(self.numpy())
508
0 commit comments