Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'collections' has no attribute 'Sequence' #871

Open
ghost opened this issue Jun 26, 2023 · 3 comments
Open

module 'collections' has no attribute 'Sequence' #871

ghost opened this issue Jun 26, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Jun 26, 2023

Module torch2trt/converters/interpolate.py throw exception: 'collections' has no attribute 'Sequence'
because starting from Python 3.10 the class has been moved to collections.abc

@Shyamsundar1984
Copy link

I am getting the same error. Have you found a solution?

@guyueyao
Copy link

guyueyao commented Dec 9, 2023

Edit the line5 of torch2trt/converters/interpolate.py:
import collections -----> import collections.abc as collections

@Ender-William
Copy link

Edit the line5 of torch2trt/converters/interpolate.py: import collections -----> import collections.abc as collections

Thank You, it is very useful for me!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants