1 Star 0 Fork 0

yangtong/TextBoxes_plusplus

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
layer.cpp 452 Bytes
一键复制 编辑 原始数据 按行查看 历史
MhLiao 提交于 2018-01-29 15:32 +08:00 . initial commit
#include <boost/thread.hpp>
#include "caffe/layer.hpp"
namespace caffe {
template <typename Dtype>
void Layer<Dtype>::InitMutex() {
forward_mutex_.reset(new boost::mutex());
}
template <typename Dtype>
void Layer<Dtype>::Lock() {
if (IsShared()) {
forward_mutex_->lock();
}
}
template <typename Dtype>
void Layer<Dtype>::Unlock() {
if (IsShared()) {
forward_mutex_->unlock();
}
}
INSTANTIATE_CLASS(Layer);
} // namespace caffe
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/celllab/TextBoxes_plusplus.git
git@gitee.com:celllab/TextBoxes_plusplus.git
celllab
TextBoxes_plusplus
TextBoxes_plusplus
master

搜索帮助