EXPECT_GE(top_data[i], 0.);
EXPECT_LE(top_data[i], 1.);
if (top_data[i] == 0) {
- EXPECT_LE(bottom_data[i],threshold_);
+ EXPECT_LE(bottom_data[i], threshold_);
}
if (top_data[i] == 1) {
- EXPECT_GT(bottom_data[i],threshold_);
+ EXPECT_GT(bottom_data[i], threshold_);
}
}
}
const TypeParam* bottom_data = this->blob_bottom_->cpu_data();
const TypeParam* top_data = this->blob_top_->cpu_data();
const TypeParam threshold_ = layer_param.threshold_param().threshold();
- EXPECT_FLOAT_EQ(threshold_,0.5);
+ EXPECT_FLOAT_EQ(threshold_, 0.5);
for (int i = 0; i < this->blob_bottom_->count(); ++i) {
EXPECT_GE(top_data[i], 0.);
EXPECT_LE(top_data[i], 1.);
if (top_data[i] == 0) {
- EXPECT_LE(bottom_data[i],threshold_);
+ EXPECT_LE(bottom_data[i], threshold_);
}
if (top_data[i] == 1) {
- EXPECT_TRUE(bottom_data[i] > threshold_);
+ EXPECT_GT(bottom_data[i], threshold_);
}
}
}
EXPECT_GE(top_data[i], 0.);
EXPECT_LE(top_data[i], 1.);
if (top_data[i] == 0) {
- EXPECT_LE(bottom_data[i],threshold_);
+ EXPECT_LE(bottom_data[i], threshold_);
}
if (top_data[i] == 1) {
- EXPECT_GT(bottom_data[i],threshold_);
+ EXPECT_GT(bottom_data[i], threshold_);
}
}
}
const TypeParam* bottom_data = this->blob_bottom_->cpu_data();
const TypeParam* top_data = this->blob_top_->cpu_data();
const TypeParam threshold_ = layer_param.threshold_param().threshold();
- EXPECT_FLOAT_EQ(threshold_,0.5);
+ EXPECT_FLOAT_EQ(threshold_, 0.5);
for (int i = 0; i < this->blob_bottom_->count(); ++i) {
EXPECT_GE(top_data[i], 0.);
EXPECT_LE(top_data[i], 1.);
if (top_data[i] == 0) {
- EXPECT_LE(bottom_data[i],threshold_);
+ EXPECT_LE(bottom_data[i], threshold_);
}
if (top_data[i] == 1) {
- EXPECT_TRUE(bottom_data[i] > threshold_);
+ EXPECT_GT(bottom_data[i], threshold_);
}
}
}