首页 > 解决方案 > 顶点:TypeError:Python3 中不可能的类建议

问题描述

我安装了顶点:

pip uninstall apex

我的配置如下:

运行 import pytorch 后我遇到了这个错误:

TypeError: Class advice impossible in Python3. Use the @implementer class decorator instead.

标签: pythonpytorchapex

解决方案


我卸载了旧版本的 apex 并重新安装了新版本。有效。谢谢。

git clone https://www.github.com/nvidia/apex
cd apex
python setup.py install

推荐阅读