Torch安装运行./install.sh报错error: more than one operator "==" matches these operands问题解决

在安装Torch时运行 ./install.sh后运行不到100%中断报错,显示error: more than one operator "==" matches these operands问题,出现此问题的解决方案为:

在运行 ./install.sh之前先运行如下命令

export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__"

然后再运行./install.sh就编译成功了!

猜你喜欢

转载自blog.csdn.net/Blackrosetian/article/details/85052539