naibaf7 / caffe

Caffe: a fast open framework for deep learning. With OpenCL and CUDA support.
http://caffe.berkeleyvision.org/
Other
85 stars 20 forks source link

Compilation fails for caffe opencl branch in CPU_ONLY mode issue #55 #56

Closed DVEfremov closed 7 years ago

DVEfremov commented 7 years ago
naibaf7 commented 7 years ago

Can you explain what this does? vector<int> scale_dims = bottom[0]->shape(); on L28 should be <int_tp>

DVEfremov commented 7 years ago

Correct! Thanks a lot, will fix. I'v just taken from https://github.com/BVLC/caffe/blob/master/src/caffe/layers/softmax_layer.cpp as is now I see should be int_tp

psyhtest commented 7 years ago

Can you put the vector<int_tp> scale_dims = bottom[0]->shape(); statement just before #ifdef ... #else ... #endif? It seems to be common between the two branches.