projects
/
platform
/
upstream
/
caffe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8be82b9
)
minor update
author
Yangqing Jia
<jiayq84@gmail.com>
Thu, 19 Sep 2013 21:55:58 +0000
(14:55 -0700)
committer
Yangqing Jia
<jiayq84@gmail.com>
Thu, 19 Sep 2013 21:55:58 +0000
(14:55 -0700)
src/caffeine/test/test_neuron_layer.cpp
patch
|
blob
|
history
diff --git
a/src/caffeine/test/test_neuron_layer.cpp
b/src/caffeine/test/test_neuron_layer.cpp
index
5a28b00
..
b4254fe
100644
(file)
--- a/
src/caffeine/test/test_neuron_layer.cpp
+++ b/
src/caffeine/test/test_neuron_layer.cpp
@@
-158,7
+158,9
@@
TYPED_TEST(NeuronLayerTest, TestDropoutGradientGPU) {
Caffeine::set_mode(Caffeine::GPU);
DropoutLayer<TypeParam> layer(layer_param);
GradientChecker<TypeParam> checker(1e-2, 1e-3);
- checker.CheckGradientExhaustive(layer, this->blob_bottom_vec_, this->blob_top_vec_);
+ // 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_);
} else {
LOG(ERROR) << "Skipping test to spare my laptop.";
}