tf.sparse_reorder

tf.sparse_reorder

tf.sparse_reorder

sparse_reorder(
    sp_input,
    name=None
)

Defined in tensorflow/python/ops/sparse_ops.py.

See the guide: Sparse Tensors > Manipulation

Reorders a SparseTensor into the canonical, row-major ordering.

Note that by convention, all sparse ops preserve the canonical ordering along increasing dimension