# tf.raw_ops.DenseToDenseSetOperation

<br />

Applies set operation along last dimension of 2 `Tensor` inputs.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.raw_ops.DenseToDenseSetOperation`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/DenseToDenseSetOperation)

<br />

    tf.raw_ops.DenseToDenseSetOperation(
        set1, set2, set_operation, validate_indices=True, name=None
    )

See SetOperationOp::SetOperationFromContext for values of `set_operation`.

Output `result` is a `SparseTensor` represented by `result_indices`,
`result_values`, and `result_shape`. For `set1` and `set2` ranked `n`, this
has rank `n` and the same 1st `n-1` dimensions as `set1` and `set2`. The `nth`
dimension contains the result of `set_operation` applied to the corresponding
`[0...n-1]` dimension of `set`.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `set1` | A `Tensor`. Must be one of the following types: `int8`, `int16`, `int32`, `int64`, `uint8`, `uint16`, `string`. `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set2`. Dimension `n` contains values in a set, duplicates are allowed but ignored. |
| `set2` | A `Tensor`. Must have the same type as `set1`. `Tensor` with rank `n`. 1st `n-1` dimensions must be the same as `set1`. Dimension `n` contains values in a set, duplicates are allowed but ignored. |
| `set_operation` | A `string`. |
| `validate_indices` | An optional `bool`. Defaults to `True`. |
| `name` | A name for the operation (optional). |

<br />

<br />

| ## Returns ||
|---|---|
| A tuple of `Tensor` objects (result_indices, result_values, result_shape). ||
| `result_indices` | A `Tensor` of type `int64`. |
| `result_values` | A `Tensor`. Has the same type as `set1`. |
| `result_shape` | A `Tensor` of type `int64`. |

<br />