Skip to content

Commit

Permalink
Merge pull request BVLC#2 from TUNG/fix-resnet50-convergence
Browse files Browse the repository at this point in the history
fix the problem of convergence for resnet50
  • Loading branch information
tungld authored and GitHub Enterprise committed Mar 24, 2017
2 parents f62effc + 8cf0da3 commit dbae7ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/caffe/layers/scale_layer.cu
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ void ScaleLayer<Dtype>::Backward_gpu(const vector<Blob<Dtype>*>& top,
<<<CAFFE_GET_BLOCKS(count), CAFFE_CUDA_NUM_THREADS>>>(
count, top_diff, scale_data, scale_dim_, inner_dim_, bottom_diff);
}
CUDA_CHECK(cudaStreamSynchronize(cudaStreamDefault));
}

INSTANTIATE_LAYER_GPU_FUNCS(ScaleLayer);
Expand Down

0 comments on commit dbae7ab

Please sign in to comment.