Reorders a SparseTensor into the canonical, row-major ordering.
tf.raw_ops.SparseReorder(
input_indices, input_values, input_shape, name=None
)
Note that by convention, all sparse ops preserve the canonical ordering along increasing dimension number. The only time ordering can be violated is during manual manipulation of the indices and values vectors to add entries.
Reordering does not affect the shape of the SparseTensor.
If the tensor has rank R
and N
non-empty values, input_indices
has
shape [N, R]
, input_values has length N
, and input_shape has length R
.
Returns | |
---|---|
A tuple of Tensor objects (output_indices, output_values).
|
|
output_indices
|
A Tensor of type int64 .
|
output_values
|
A Tensor . Has the same type as input_values .
|