Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On my MacBookPro, error: no member named 'accumulate' in namespace #4

Open
ZhangXinNan opened this issue Sep 11, 2017 · 4 comments
Open

Comments

@ZhangXinNan
Copy link
Contributor

CXX src/caffe/layers/ctc_loss_layer.cpp
src/caffe/layers/ctc_loss_layer.cpp:84:23: error: no member named 'accumulate' in namespace 'std'
    Dtype loss = std::accumulate(cost, cost + mini_batch, Dtype(0));
                 ~~~~~^
1 error generated.
make: *** [.build_release/src/caffe/layers/ctc_loss_layer.o] Error 1

@yalecyu
Copy link
Owner

yalecyu commented Sep 11, 2017

I have not build on MacBook Pro. I build it on the server of Linux.I am very sorry that can't help you.You can try it on Linux or try fix it. If I will have experience on MacBook Pro, I will take communicate with you.

@ZhangXinNan
Copy link
Contributor Author

I uncomment

CUSTOM_CXX := g++

, then make , it's ok.

@yalecyu
Copy link
Owner

yalecyu commented Sep 15, 2017

Nice !

@ZhangXinNan
Copy link
Contributor Author

  1. Makefile.config
-# CPU_ONLY := 1
+CPU_ONLY := 1

-# CUSTOM_CXX := g++
+CUSTOM_CXX := g++
  1. src/caffe/layers/ctc_loss_layer.cpp
+#include <numeric>
 #include <caffe/layers/ctc_loss_layer.hpp>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants