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

const std::string &description() const

Get the string name for the type of the node, such as Add or Multiply. The class name, must not contain spaces as it is used for codegen.

Return
A const reference to the node’s type name

Result()

Allows a value to be used as a function result.

Result(const Output<Node> &arg, bool needs_default_layout = false)

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.