Skip to content

Commit

Permalink
Fix test stochastic pooling stepsize/threshold to be same as max pooling
Browse files Browse the repository at this point in the history
  • Loading branch information
kloudkl committed Jan 11, 2014
1 parent 842a435 commit d851962
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/caffe/test/test_stochastic_pooing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ TYPED_TEST(StochasticPoolingLayerTest, TestStochasticGPUTestPhase) {
}
}



TYPED_TEST(StochasticPoolingLayerTest, TestGradientGPU) {
Caffe::set_mode(Caffe::GPU);
Caffe::set_phase(Caffe::TRAIN);
Expand All @@ -151,12 +149,10 @@ TYPED_TEST(StochasticPoolingLayerTest, TestGradientGPU) {

layer_param.set_pool(LayerParameter_PoolMethod_STOCHASTIC);
PoolingLayer<TypeParam> layer(layer_param);
GradientChecker<TypeParam> checker(1e-2, 1e-3);
GradientChecker<TypeParam> checker(1e-4, 1e-2);
// it is too expensive to call curand multiple times, so we don't do an
// exhaustive gradient check.
checker.CheckGradient(layer, this->blob_bottom_vec_, this->blob_top_vec_);
}



}

0 comments on commit d851962

Please sign in to comment.