1.环境
torch==1.1.0
numpy==1.18.5
2.问题
FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version
3.解决
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple numpy==1.16.4
参考
1.tensorflow/issues/31249#issue