tft.deduplicate_tensor_per_row
Stay organized with collections
Save and categorize content based on your preferences.
Deduplicates each row (0-th dimension) of the provided tensor.
tft.deduplicate_tensor_per_row(
input_tensor, name=None
)
Args |
input_tensor
|
A two-dimensional Tensor or SparseTensor . The first
dimension is assumed to be the batch or "row" dimension, and deduplication
is done on the 2nd dimension. If the Tensor is 1D it is returned as the
equivalent SparseTensor since the "row" is a scalar can't be further
deduplicated.
|
name
|
Optional name for the operation.
|
Returns |
A SparseTensor containing the unique set of values from each
row of the input. Note: the original order of the input may not be
preserved.
|
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.
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."],[],[]]