Result

Result  // Allow a value to be a result

Description

Captures a value for use as a function result. The output of the op is the same as the input.

Inputs

Name Element Type Shape
arg Any Any

Outputs

Name Element Type Shape
output Same as arg Same as arg

Mathematical Definition

\[\mathtt{output} = \mathtt{arg}\]

C++ Interface

class Result : public ngraph::op::Op

Public Functions

Result(const std::shared_ptr<Node> &arg)

Allows a value to be used as a function result.

Parameters
  • arg: Node that produces the input tensor.

void validate_and_infer_types()

Throws if the node is invalid.