成功安装
参考:
Frank(Zhiyang-Dou)apex安装
dinosaurcity cannot import name ‘amp‘ from “apex“ / from apex import amp
硬件:3090
环境配置: cuda11.1
命令:
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchaudio==0.9.0 -f https://download.pytorch.org/whl/torch_stable.html
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" ./
或者
python setup.py install