Skip to content
  • Shoufa Chen's avatar
    fix import container_abcs issue (#1049) · a78ccf0b
    Shoufa Chen authored
    * copy-paste friendly
    
    * fix import container_abcs issue
    
    Nightly PyTorch has removed `container_abcs` from `torch._six`.  https://github.com/pytorch/pytorch/commit/58eb23378f2a376565a66ac32c93a316c45b6131#diff-b3c160475f0fbe8ad50310f92d3534172ba98203387a962b7dc8f4a23b15cf4dL35
    
    * fix import container_abcs issue
    
    Nightly PyTorch has removed `container_abcs` from `torch._six`.
    https://github.com/pytorch/pytorch/commit/58eb23378f2a376565a66ac32c93a316c45b6131#diff-b3c160475f0fbe8ad50310f92d3534172ba98203387a962b7dc8f4a23b15cf4dL35
    
    * keep existing for pytorch1.7 and earlier
    a78ccf0b