<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/transform/blob/v1.21.0/tensorflow_transform/mappers.py#L1418-L1487) |

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

    tft.deduplicate_tensor_per_row(
        input_tensor, name=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|

<br />

*** ** * ** ***

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.

<br />

<br />

<br />

| ## Returns ||
|---|---|

<br />

*** ** * ** ***

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.