rctn / sparsecoding

Reference sparse coding implementations for efficient learning and inference.
BSD 3-Clause "New" or "Revised" License
16 stars 3 forks source link

AttributeError: module 'torch' has no attribute 'concat' #26

Open denkle opened 2 years ago

denkle commented 2 years ago

When running "inference_example", the cell that suppose to return LCA coefficients results in error "AttributeError: module 'torch' has no attribute 'concat'". It has likely to do with PyTorch version on my side since they have the page for this method (https://pytorch.org/docs/stable/generated/torch.concat.html) but it might tell us the minimal version to specify on the dependencies list
UPD: Before I had version 1.9.0. The error is given after installing 1.11.0

9q9q commented 2 years ago

this is weird because the torch.concat() doc page is supposedly for 1.11.0. just curious, does torch.cat() work?

denkle commented 2 years ago

I have not documented it properly but as far as I could recall - yes torch.cat() worked.