GetOutputElement  // Operation to select a unique output from an op


Accesses an output of a node.


Name Element Type Shape
arg Any Any


Name Description
n The output number from the node arg


Name Element Type Shape
output Depends on arg Depends on arg

C++ Interface

class GetOutputElement : public ngraph::op::Op

Operation to get an output from a node.

Public Functions

const NodeTypeInfo &get_type_info() const

Returns the NodeTypeInfo for the node’s class. During transition to type_info, returns a dummy type_info for Node if the class has not been updated yet.

GetOutputElement(const std::shared_ptr<Node> &arg, size_t n)

Constructs a get-tuple-element operation.

  • arg: The input tuple.
  • n: The index of the tuple element to get.

Output<Node> get_as_output() const

Return the equilent Output<Node>

void validate_and_infer_types()

Throws if the node is invalid.

size_t get_n() const

The index of the tuple element to get.