<div id="content_views" class="markdown_views prism-atom-one-dark" deep="6">
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<path stroke-linecap="round" d="M5,0 0,2.5 5,5z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);"></path>
</svg>
<h2><a name="t0"></a><a id="_0"></a>项目场景:</h2>
(报错路径) \ 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 命令,编译通过