tensorly / torch

TensorLy-Torch: Deep Tensor Learning with TensorLy and PyTorch
http://tensorly.org/torch/
BSD 3-Clause "New" or "Revised" License
74 stars 19 forks source link

Replacing collections with collections.abc for Python 3.10 support #29

Closed bonevbs closed 2 years ago

bonevbs commented 2 years ago

just a minimum PR to be compatible with newer Python versions. See here: https://docs.python.org/3/library/collections.abc.html#collections-abstract-base-classes

JeanKossaifi commented 2 years ago

Thanks @bonevbs, I've been meaning to do this for a while, thanks for actually making a PR and fixing it!