torch
torch copied to clipboard
add is_sparse method for tensors
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
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).
Sorry @egillax ! I ended up re-implementing it here: https://github.com/mlverse/torch/pull/903 to avoid conflicts when merging.