Fixed name of threshold_ var
authorSergio Guadarrama <sguada@gmail.com>
Thu, 15 May 2014 23:57:50 +0000 (16:57 -0700)
committerSergio <sguada@gmail.com>
Tue, 27 May 2014 17:32:23 +0000 (10:32 -0700)
src/caffe/test/test_threshold_layer.cpp

index c475f66..454b3cb 100644 (file)
@@ -59,7 +59,7 @@ TYPED_TEST(ThresholdLayerTest, TestCPU) {
   // Now, check values
   const TypeParam* bottom_data = this->blob_bottom_->cpu_data();
   const TypeParam* top_data = this->blob_top_->cpu_data();
-  const TypeParam threshold_ = layer.theshold_;
+  const TypeParam threshold_ = layer.threshold_;
   for (int i = 0; i < this->blob_bottom_->count(); ++i) {
     EXPECT_GE(top_data[i], 0.);
     EXPECT_LE(top_data[i], 1.);