tf.raw_ops.SparseReorder
Stay organized with collections
Save and categorize content based on your preferences.
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
.
Args |
input_indices
|
A Tensor of type int64 .
2-D. N x R matrix with the indices of non-empty values in a
SparseTensor, possibly not in canonical ordering.
|
input_values
|
A Tensor .
1-D. N non-empty values corresponding to input_indices .
|
input_shape
|
A Tensor of type int64 .
1-D. Shape of the input SparseTensor.
|
name
|
A name for the operation (optional).
|
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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[]]