安裝apex步驟如下:
sudo apt install git git clone https://github.com/NVIDIA/apex.git cd apex python setup.py install --cpp_ext --cuda_ext (如果此條命令運行不通的話,使用 pip3 install -v --no-cache-dir ./ 和 pip install -v --no-cache-dir ./)
參考鏈接: https://zhuanlan.zhihu.com/p/360412833 https://github.com/NVIDIA/apex/issues/156 https://blog.csdn.net/dlhlSC/article/details/93620211