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

Is there a plan to support python 3.10? #883

Open
jakubhejhal opened this issue Sep 22, 2023 · 1 comment
Open

Is there a plan to support python 3.10? #883

jakubhejhal opened this issue Sep 22, 2023 · 1 comment

Comments

@jakubhejhal
Copy link

Model export is failing on:

  File "/venv/lib/python3.10/site-packages/torch2trt-0.4.0-py3.10.egg/torch2trt/torch2trt.py", line 310, in wrapper
    converter["converter"](ctx)
  File "/venv/lib/python3.10/site-packages/torch2trt-0.4.0-py3.10.egg/torch2trt/converters/interpolate.py", line 81, in convert_interpolate_trt7
    if not isinstance(scales, collections.Sequence):
AttributeError: module 'collections' has no attribute 'Sequence'

Because it has been dropped from the collections module in python 3.10

@teodorToshkov
Copy link
Contributor

I added a pull request, fixing this issue.
Please check it out. It was a simple fix.
#884

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

2 participants