Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
DataType |
dataType()
Returns the DataType of the tensor referred to by this Output.
|
boolean |
equals(Object o) |
int |
hashCode() |
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 tensor referred to by this Output.
|
Tensor<T> |
tensor()
Returns the tensor at this output.
|
String |
toString() |
public Operation op()
public int index()
public Shape shape()
public DataType dataType()
public Tensor<T> tensor()
This operation is only supported on the outputs of an operation executed eagerly. For graph
environments, output tensors must be fetched by running a session, using Session.Runner.fetch(Output)
.
IllegalStateException
- if this output results from a graphEagerSession
public Output<T> asOutput()
Operand
Inputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput
in interface Operand<T>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.