torch icon indicating copy to clipboard operation
torch copied to clipboard

add is_sparse method for tensors

Open egillax opened this issue 2 years ago • 1 comments

solves #736

Full credit goes to @rdinnager since I got this from his branch here. I just needed this functionality again and there's been no movement on that branch since january.

This passes all tests locally

egillax avatar Aug 21 '22 12:08 egillax

Hi @egillax, glad this will get some use. I got really busy with other stuff and don't know when I will be able to get back to implementing functional (if ever), so feel free to use anything from that branch (not that I got very far with it).

rdinnager avatar Aug 22 '22 13:08 rdinnager

Sorry @egillax ! I ended up re-implementing it here: https://github.com/mlverse/torch/pull/903 to avoid conflicts when merging.

dfalbel avatar Oct 19 '22 11:10 dfalbel