Adds up a SparseTensor and a dense Tensor, using these special rules:
tf.raw_ops.SparseDenseCwiseAdd(
sp_indices, sp_values, sp_shape, dense, name=None
)
(1) Broadcasts the dense side to have the same shape as the sparse side, if eligible; (2) Then, only the dense values pointed to by the indices of the SparseTensor participate in the cwise addition.
By these rules, the result is a logical SparseTensor with exactly the same indices and shape, but possibly with different non-zero values. The output of this Op is the resultant non-zero values.
Returns | |
---|---|
A Tensor . Has the same type as sp_values .
|