I pulled a program from github, and the creator used torch.sparse.FloatTensor, and my versions are telling me that it cannot be found. Is there an alternative?
Which PyTorch version are you using? I can use this class in a pre-1.9.0 build as well as the current master.
My version is 1.8.1.
That’s really weird, since torch.sparse.FloatTensor
was already used ~3 years ago as seen in e.g. this PR.
Could you try to reinstall PyTorch or update to the latest release?
I fixed it, it had to do with my data. Thanks though