Class ov::op::v8::If#
-
class If : public ov::op::util::MultiSubGraphOp#
If operation.
Public Functions
-
If(const Output<Node> &execution_condition)#
Constructs If with condition.
- Parameters:
execution_condition – condition node.
-
inline const std::shared_ptr<Model> &get_then_body() const#
gets then_body as ov::Model.
- Returns:
then_body as ov::Model.
-
inline const std::shared_ptr<Model> &get_else_body() const#
gets else_body as ov::Model.
- Returns:
else_body as ov::Model.
sets new ov::Model as new then_body.
- Parameters:
body – new body for ‘then’ branch.
sets new ov::Model as new else_body.
- Parameters:
body – new body for ‘else’ branch.
sets new input to the operation associated with parameters of each sub-graphs
- Parameters:
value – input to operation
then_parameter – parameter for then_body or nullptr
else_parameter – parameter for else_body or nullpt
sets new output from the operation associated with results of each sub-graphs
- Parameters:
then_result – result from then_body
else_parameter – result from else_body
- Returns:
output from operation
-
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.
-
If(const Output<Node> &execution_condition)#