项目场景:
(报错路径) \ Lib \ site-packages \ torch \ include \ pybind11 \ cast . h ( 1429 ) : error : too few arguments for template template parameter Tuple
detected during instantiation of class “pybind11::detail::tuple_caster<Tuple, Ts…> [with Tuple=std::pair, Ts=<T1, T2>]”
问题描述
可能不是cuda版本的问题
解决方案:
将cast.h中报错信息相应位置附近,注释掉以下内容
重新 python setup.py build 命令,编译通过