Closed Lxy811 closed 6 months ago
Yes, StackOverflow shows that runs from torch._six import container_abcs
at the pytorch greater than 1.9 will report an error, the correct code is to use 'import collections.abc as container_abcs'.
Can you tell me which line of code in this repository runs the 'from torch._six import container_abcs'?
Yes, StackOverflow shows that runs
from torch._six import container_abcs
at the pytorch greater than 1.9 will report an error, the correct code is to use 'import collections.abc as container_abcs'. Can you tell me which line of code in this repository runs the 'from torch._six import container_abcs'?
There is nothing wrong with this code. I suspect the problem may be a conflict between your installed versions of ‘apex’ and ‘pytorch’.
There is nothing wrong with this code. I suspect the problem may be a conflict between your installed versions of ‘apex’ and ‘pytorch’.
Ok, I'll have another look
from torch._six import container_abcs ImportError: cannot import name 'container_abcs' Can you help me see how to solve this problem?Is it because of the torch version?