Output

public final class Output

A symbolic handle to a tensor produced by an Operation.

An Output is a symbolic handle to a tensor. The value of the Tensor is computed by executing the Operation in a Session.

Public Constructors

Output(Operation op, int idx)
Handle to the idx-th output of the Operation op.

Public Methods

int
index()
Returns the index into the outputs of the Operation.
Operation
op()
Returns the Operation that will produce the tensor referred to by this Output.
Shape
shape()
Returns the (possibly partially known) shape of the operation that will produce the tensor referred to by this Output.

Inherited Methods

Public Constructors

public Output (Operation op, int idx)

Handle to the idx-th output of the Operation op.

Parameters
op
idx

Public Methods

public int index ()

Returns the index into the outputs of the Operation.

public Operation op ()

Returns the Operation that will produce the tensor referred to by this Output.

public Shape shape ()

Returns the (possibly partially known) shape of the operation that will produce the tensor referred to by this Output.