Applies set operation along last dimension of Tensor
and SparseTensor
.
tf.raw_ops.DenseToSparseSetOperation(
set1,
set2_indices,
set2_values,
set2_shape,
set_operation,
validate_indices=True,
name=None
)
See SetOperationOp::SetOperationFromContext for values of set_operation
.
Input set2
is a SparseTensor
represented by set2_indices
, set2_values
,
and set2_shape
. For set2
ranked n
, 1st n-1
dimensions must be the same
as set1
. Dimension n
contains values in a set, duplicates are allowed but
ignored.
If validate_indices
is True
, this op validates the order and range of set2
indices.
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
.