indices: (array_like) Initial data for the tensor. Can be a list, tuple, NumPy ndarray, scalar, and other types. Will be cast to a torch_LongTensor internally. The indices are the coordinates of the non-zero values in the matrix, and thus should be two-dimensional where the first dimension is the number of tensor dimensions and the second dimension is the number of non-zero values.
values: (array_like) Initial values for the tensor. Can be a list, tuple, NumPy ndarray, scalar, and other types.
size: (list, tuple, or torch.Size, optional) Size of the sparse tensor. If not provided the size will be inferred as the minimum size big enough to hold all non-zero elements.
dtype: (torch.dtype, optional) the desired data type of returned tensor. Default: if NULL, infers data type from values.
device: (torch.device, optional) the desired device of returned tensor. Default: if NULL, uses the current device for the default tensor type (see torch_set_default_tensor_type). device will be the CPU for CPU tensor types and the current CUDA device for CUDA tensor types.
requires_grad: (bool, optional) If autograd should record operations on the returned tensor. Default: FALSE.
Constructs a sparse tensors in COO(rdinate) format with non-zero elements at the given indices
with the given values. A sparse tensor can be uncoalesced, in that case, there are duplicate coordinates in the indices, and the value at that index is the sum of all duplicate value entries: torch_sparse_.