ROCm / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
17 stars 14 forks source link

no module torch._six #106

Open zstreet87 opened 1 year ago

zstreet87 commented 1 year ago

PyTorch 2.0 work using upstream TOT showed the title error, which is ultimately from this PR https://github.com/pytorch/pytorch/pull/94709.

File apex/amp/_initialize.py ❱  from torch._six import string_classes

Solution is to cherry pick upstream apex for the fix. https://github.com/NVIDIA/apex/commit/6943fd26e04c59327de32592cf5af68be8f5c44e

zstreet87 commented 1 year ago

@jpvillam-amd