diff --git a/src/caffe/layers/tanh_layer.cpp b/src/caffe/layers/tanh_layer.cpp index 66f530f8..77b44104 100644 --- a/src/caffe/layers/tanh_layer.cpp +++ b/src/caffe/layers/tanh_layer.cpp @@ -33,7 +33,6 @@ void TanHLayer::Backward_cpu(const vector*>& top, const Dtype* top_diff = top[0]->cpu_diff(); Dtype* bottom_diff = (*bottom)[0]->mutable_cpu_diff(); const int count = (*bottom)[0]->count(); - Dtype exp2x; Dtype tanhx; for (int i = 0; i < count; ++i) { tanhx = top_data[i]; diff --git a/src/caffe/net.cpp b/src/caffe/net.cpp index 41ae7520..d76d284d 100644 --- a/src/caffe/net.cpp +++ b/src/caffe/net.cpp @@ -42,7 +42,6 @@ void Net::Init(const NetParameter& in_param) { name_ = param.name(); map blob_name_to_idx; set available_blobs; - int num_layers = param.layers_size(); CHECK_EQ(param.input_size() * 4, param.input_dim_size()) << "Incorrect input blob dimension specifications."; memory_used_ = 0; @@ -58,7 +57,6 @@ void Net::Init(const NetParameter& in_param) { bottom_id_vecs_.resize(param.layers_size()); top_id_vecs_.resize(param.layers_size()); for (int layer_id = 0; layer_id < param.layers_size(); ++layer_id) { - bool in_place = false; const LayerParameter& layer_param = param.layers(layer_id); layers_.push_back(shared_ptr >(GetLayer(layer_param))); layer_names_.push_back(layer_param.name()); @@ -198,7 +196,6 @@ int Net::AppendBottom(const NetParameter& param, bottom_vecs_[layer_id].push_back(blobs_[blob_id].get()); bottom_id_vecs_[layer_id].push_back(blob_id); available_blobs->erase(blob_name); - bool need_backward = param.force_backward() || blob_need_backward_[blob_id]; return blob_id; } diff --git a/tools/extract_features.cpp b/tools/extract_features.cpp index cdad6676..3a670d96 100644 --- a/tools/extract_features.cpp +++ b/tools/extract_features.cpp @@ -116,7 +116,6 @@ int feature_extraction_pipeline(int argc, char** argv) { leveldb::WriteBatch* batch = new leveldb::WriteBatch(); const int kMaxKeyStrLength = 100; char key_str[kMaxKeyStrLength]; - int num_bytes_of_binary_code = sizeof(Dtype); vector*> input_vec; int image_index = 0; for (int batch_index = 0; batch_index < num_mini_batches; ++batch_index) {