Removed destroy tensor function to avoid error logs in test

This commit is contained in:
Alejandro Saucedo
2021-02-08 19:44:07 +00:00
parent aa75fdae47
commit 65cb1b7582

View File

@@ -5,20 +5,19 @@
TEST(TestOpTensorCreate, CreateSingleTensorSingleOp)
{
kp::Manager mgr;
std::vector<float> testVecA{ 9, 8, 7 };
std::shared_ptr<kp::Tensor> tensorA{ new kp::Tensor(testVecA) };
mgr.rebuildTensors({ tensorA });
{
kp::Manager mgr;
EXPECT_TRUE(tensorA->isInit());
mgr.rebuildTensors({ tensorA });
EXPECT_EQ(tensorA->data(), testVecA);
EXPECT_TRUE(tensorA->isInit());
EXPECT_EQ(tensorA->data(), testVecA);
}
tensorA->freeMemoryDestroyGPUResources();
EXPECT_FALSE(tensorA->isInit());
}