#include #include "caffe/layer.hpp" namespace caffe { template void Layer::InitMutex() { forward_mutex_.reset(new boost::mutex()); } template void Layer::Lock() { if (IsShared()) { forward_mutex_->lock(); } } template void Layer::Unlock() { if (IsShared()) { forward_mutex_->unlock(); } } INSTANTIATE_CLASS(Layer); } // namespace caffe