caffe-augmentation 编译

  • 问题一
    In file included from ./include/caffe/common.hpp:19:0,
                     from ./include/caffe/blob.hpp:8,
                     from ./include/caffe/layer.hpp:8,
                     from src/caffe/layers/multi_label_sigmod_loss_layer.cpp:5:
    ./include/caffe/util/device_alternate.hpp:15:36: error: no ‘void caffe::MultiLabelSigmoidLossLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::MultiLabelSigmoidLossLayer<Dtype>’
         const vector<Blob<Dtype>*>& top) { NO_GPU; } \
                                        ^
    src/caffe/layers/multi_label_sigmod_loss_layer.cpp:99:1: note: in expansion of macro ‘STUB_GPU’
     STUB_GPU(MultiLabelSigmoidLossLayer);
     ^
    ./include/caffe/util/device_alternate.hpp:19:39: error: no ‘void caffe::MultiLabelSigmoidLossLayer<Dtype>::Backward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<bool>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::MultiLabelSigmoidLossLayer<Dtype>’
         const vector<Blob<Dtype>*>& bottom) { NO_GPU; } \
                                           ^
    src/caffe/layers/multi_label_sigmod_loss_layer.cpp:99:1: note: in expansion of macro ‘STUB_GPU’
     STUB_GPU(MultiLabelSigmoidLossLayer);
     ^
    Makefile:518: recipe for target '.build_release/src/caffe/layers/multi_label_sigmod_loss_layer.o' failed
    make: *** [.build_release/src/caffe/layers/multi_label_sigmod_loss_layer.o] Error 1

    参考博客:https://blog.youkuaiyun.com/yangpan011/article/details/80586728 

    将src/caffe/layers/multi_label_sigmod_loss_layer.cpp 中删除以下内容:
    
    #ifdef 
    CPU_ONLY STUB_GPU(multilabelsigmodlosslayer); 
    #endif

     

  • 问题二

    1
    ./include/caffe/util/device_alternate.hpp:15:36: error: no ‘void caffe::K2_EuclideanLossLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::K2_EuclideanLossLayer<Dtype>’
         const vector<Blob<Dtype>*>& top) { NO_GPU; } \
                                        ^
    src/caffe/layers/K2_euclidean_loss_layer.cpp:84:1: note: in expansion of macro ‘STUB_GPU’
     STUB_GPU(K2_EuclideanLossLayer);
    
    2
    ./include/caffe/util/device_alternate.hpp:15:36: error: no ‘void caffe::K1_EuclideanLossLayer<Dtype>::Forward_gpu(const std::vector<caffe::Blob<Dtype>*>&, const std::vector<caffe::Blob<Dtype>*>&)’ member function declared in class ‘caffe::K1_EuclideanLossLayer<Dtype>’
         const vector<Blob<Dtype>*>& top) { NO_GPU; } \
                                        ^
    src/caffe/layers/K1_euclidean_loss_layer.cpp:86:1: note: in expansion of macro ‘STUB_GPU’
     STUB_GPU(K1_EuclideanLossLayer);

     

  •  

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值