当前位置:网站首页>【win10+cuda7.5+cudnn6.0安装caffe⑥】报错及处理方式
【win10+cuda7.5+cudnn6.0安装caffe⑥】报错及处理方式
2022-08-11 05:14:00 【4576号菜鸟】
报错1:too few arguments in function call
错误 127 error : too few arguments in function call
解决方法:
将cudnn.hpp的114行附近代码:
template <typename Dtype>
inline void setConvolutionDesc(cudnnConvolutionDescriptor_t* conv,
cudnnTensorDescriptor_t bottom, cudnnFilterDescriptor_t filter,
int pad_h, int pad_w, int stride_h, int stride_w) {
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
}
换成了:
template <typename Dtype>
inline void setConvolutionDesc(cudnnConvolutionDescriptor_t* conv,
cudnnTensorDescriptor_t bottom, cudnnFilterDescriptor_t filter,
int pad_h, int pad_w, int stride_h, int stride_w) {
#if CUDNN_VERSION_MIN(6, 0, 0)
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION,
dataType<Dtype>::type));
#else
CUDNN_CHECK(cudnnSetConvolution2dDescriptor(*conv,
pad_h, pad_w, stride_h, stride_w, 1, 1, CUDNN_CROSS_CORRELATION));
#endif
}
参考文章:https://blog.csdn.net/mao_hui_fei/article/details/80326464
问题2:如果不想使用GPU编译caffe怎么办?
将CpuOnlyBuild设为true
将UseCuDNN设为false
边栏推荐
猜你喜欢
随机推荐
Thymeleaf
postman脚本的应用
Flask框架学习:模板渲染与Get,Post请求
搭建PX4开发环境
基于 TF-IDF 文本匹配实战详细教程 数据+代码 可直接运行
原生态mongo连接查询代码
[No 2022 Shanghai Security Officer A Certificate Exam Question Bank and Mock Exam
切分字符串进行输出显示
(三)Redis 如何进行压测
[Embedded open source library] The use of MultiButton, an easy-to-use event-driven button driver module
Prometheus :(一)基本概念
@Resource和@Autowired的区别
(1) Docker installs Redis in practice (one master, two slaves, three sentinels)
一、Jmeter环境部署
玩转mysql之查看mysql版本号
Redis - the solution to the failure of connecting to the redis server in linux using jedis
Django--20 implements Redis support, context, and interaction of context and interface
Golden Warehouse Database KingbaseGIS User Manual (6.8. Geometry Object Input Function)
面试宝典一: code题目记录
博客目录管理 :机器学习 深度学习 nlp