зеркало из https://github.com/microsoft/caffe.git
failing test, needs to be checked.
This commit is contained in:
Родитель
abe7272286
Коммит
9e1b0d17b7
|
@ -36,6 +36,14 @@ TYPED_TEST(BlobSimpleTest, TestInitialization) {
|
||||||
EXPECT_EQ(this->blob_->count(), 0);
|
EXPECT_EQ(this->blob_->count(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TYPED_TEST(BlobSimpleTest, TestPointers) {
|
||||||
|
EXPECT_TRUE(this->blob_preshaped_->gpu_data() != NULL);
|
||||||
|
EXPECT_TRUE(this->blob_preshaped_->cpu_data() != NULL);
|
||||||
|
EXPECT_TRUE(this->blob_preshaped_->mutable_gpu_data() != NULL);
|
||||||
|
EXPECT_TRUE(this->blob_preshaped_->mutable_cpu_data() != NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TYPED_TEST(BlobSimpleTest, TestReshape) {
|
TYPED_TEST(BlobSimpleTest, TestReshape) {
|
||||||
this->blob_->Reshape(2, 3, 4, 5);
|
this->blob_->Reshape(2, 3, 4, 5);
|
||||||
EXPECT_EQ(this->blob_->num(), 2);
|
EXPECT_EQ(this->blob_->num(), 2);
|
||||||
|
@ -45,4 +53,5 @@ TYPED_TEST(BlobSimpleTest, TestReshape) {
|
||||||
EXPECT_EQ(this->blob_->count(), 120);
|
EXPECT_EQ(this->blob_->count(), 120);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче