I want to copy a 2D sparse matrix along a new third axis. With a dense matrix, I’d use unsqueeze followed by repeat, but with a sparse matrix, I get the following error:
RuntimeError: sparse tensors do not have strides

How do I fix this?
Any help would be greatly appreciated. Thank you!