Skip to content

Commit

Permalink
Merge pull request BVLC#5 from Oh233/master
Browse files Browse the repository at this point in the history
Fix test issues
  • Loading branch information
daijifeng001 authored Aug 1, 2016
2 parents 9133d28 + 66d7398 commit 2a517c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/caffe/layers/batch_norm_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ void BatchNormLayer<Dtype>::Reshape(const vector<Blob<Dtype>*>& bottom,
mean_.Reshape(sz);
variance_.Reshape(sz);
temp_.ReshapeLike(*bottom[0]);
if (use_global_stats_) {
x_norm_.ReshapeLike(*bottom[0]);
}
x_norm_.ReshapeLike(*bottom[0]);
sz[0]=bottom[0]->shape(0);
batch_sum_multiplier_.Reshape(sz);

Expand Down
2 changes: 1 addition & 1 deletion src/caffe/layers/smooth_L1_loss_ohem_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ namespace caffe {

// Output per-instance loss
if (top.size() >= 2) {
kernel_channel_sum<Dtype> << <CAFFE_GET_BLOCKS(top[0]->count()),
kernel_channel_sum<Dtype> << <CAFFE_GET_BLOCKS(top[1]->count()),
CAFFE_CUDA_NUM_THREADS >> > (outer_num_, bottom[0]->channels(),
inner_num_, errors_.gpu_data(), top[1]->mutable_gpu_data());
}
Expand Down

0 comments on commit 2a517c1

Please sign in to comment.