append#
- iskra.sparse.append(x: SparseTensor, indices: Tensor, values: Tensor) SparseTensor[SOURCE]#
Appends new values to an existing COO tensor.
In the case of an attempt to add values to already existing indices, the values are added together.
- Parameters:
x (
SparseTensor) – Sparse COO tensor to which we will append values.indices (
Tensor) – Indices for the new values.values (
Tensor) – The new values.
- Returns:
(
SparseTensor) – Sparse COO tensor containing both the old and new values.