TensorFlow 2.0 RC is available Learn more

tft.deduplicate_tensor_per_row

tft.deduplicate_tensor_per_row(
    input_tensor,
    name=None
)

Deduplicates each row (0-th dimension) of the provided tensor.

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.