torch2trt
torch2trt copied to clipboard
module 'collections' has no attribute 'Sequence'
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
I am getting the same error. Have you found a solution?
Edit the line5 of torch2trt/converters/interpolate.py: import collections -----> import collections.abc as collections
Edit the line5 of torch2trt/converters/interpolate.py: import collections -----> import collections.abc as collections
Thank You, it is very useful for me!!!