Consumers of these indexed slices (i.e., ops that use this op output as one of their inputs).
Consumers of these indexed slices (i.e., ops that use this op output as one of their inputs).
Data type of these op output indexed slices.
Data type of these op output indexed slices.
Shape of the corresponding dense Output.
Device on which these op output indexed slices will be placed.
Device on which these op output indexed slices will be placed.
Graph that contains values
, indices
, and denseShape
.
Graph that contains values
, indices
, and denseShape
.
Indices along the first dimension of the corresponding dense Output.
Name of this op output indexed slices.
Name of this op output indexed slices.
Op that outputs these indexed slices.
Op that outputs these indexed slices.
Gets the Shape corresponding to the shape of the dense tensor that these indexed slices represent.
Gets the Shape corresponding to the shape of the dense tensor that these indexed slices represent.
Dense tensor shape.
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.
Values corresponding to the provided indices.
Sparse representation of a set of tensor slices at given indices.
This class if a simple wrapper for a pair (or a set of three) of Output objects:
indices
: A one-dimensional integer Output with shape[D0]
.values
: An Output of any data type, with shape[D0, D1, ..., Dn]
.denseShape
: Optionally, an integer Output with shape[LARGE0, D1, ..., Dn]
.An OutputIndexedSlices is typically used to represent a subset of a larger Output,
dense
, of shape[LARGE0, D1, ..., Dn]
, whereLARGE0 >> D0
. The values inindices
are the indices in the first dimension of the slices that have been extracted from the larger tensor.The dense Output,
dense
, represented by OutputIndexedSlices,slices
, has:The OutputIndexedSlices class is used primarily in the definition of gradients for operations that have sparse gradients, such as
gather
.Note that this is different than SparseOutput which uses multi-dimensional indices and scalar values.
Indices along the first dimension of the corresponding dense Output.
Values corresponding to the provided indices.
Shape of the corresponding dense Output.