Class ov::op::v0::TensorIterator

class TensorIterator : public ov::op::util::SubGraphOp

Iterate a body over tensors, accumulating into tensors.

Public Functions

inline std::shared_ptr<Model> get_body() const

the body of the iteration

inline void set_body(const std::shared_ptr<Model> &body)

body – set the body of the iteration

virtual void validate_and_infer_types() override

Verifies that attributes and inputs are consistent and computes output shapes and element types. Must be implemented by concrete child classes so that it can be run any number of times.

Throws if the node is invalid.