【环境配置Debug】error : too few arguments for template template parameter Tuple

            <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 命令,编译通过

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值