Creates an op that slices this op according to the provided indexers.
Creates an op that slices this op according to the provided indexers.
More details into how to construct and use indexers are provided in the Indexer documentation.
First indexer to use.
Rest of the indexers to use.
Created op.
Consumers of this op output (i.e., ops that use this op output as one of their inputs).
Consumers of this op output (i.e., ops that use this op output as one of their inputs).
Data type of this op output.
Data type of this op output.
Device on which this op output will be placed.
Device on which this op output will be placed.
Graph where the op belongs.
Graph where the op belongs.
Output index.
Name of this op output.
Name of this op output. This is simply set to "<op.name>:<index>"
.
Op whose output this class represents.
Op whose output this class represents.
Rank of the tensor that this op output represents.
Sets the shape of this op output to the provided shape.
Sets the shape of this op output to the provided shape.
This method can be useful in cases when shape inference fails, but the shape of the op output is known by the user of the library.
Shape to use.
Shape of the tensor that this op output represents.
Size of the tensor that this op output represents.
Creates an op that slices this op according to the provided indexers.
Creates an op that slices this op according to the provided indexers.
More details into how to construct and use indexers are provided in the Indexer documentation.
First indexer to use.
Rest of the indexers to use.
Created op.
Returns the Output that this OutputLike object represents.
Returns the Output that this OutputLike object represents.
Returns an OutputIndexedSlices that has the same value as this OutputLike.
Returns an OutputIndexedSlices that has the same value as this OutputLike.
Boolean flag indicating whether to optimize this conversion by using a constant op with the shape of this tensor at graph creation time (instead of execution time), if known.
OutputIndexedSlices that has the same value as this OutputLike.
Representation of one of the outputs of an Op's computation.
An
Output
is a symbolic handle to one of the outputs of an Op. It does not hold the values of that op's output, but instead provides a means of computing those values in a TensorFlow Session.This class has two primary purposes:
Output.evaluate
can also be used to compute the value of an Output If no session is provided, then the default session is used.In the following example,
c
,d
, ande
are symbolic Output objects, whereasresult
is a Scala array that stores a concrete value: