Removed destroy tensor function to avoid error logs in test
This commit is contained in:
parent
aa75fdae47
commit
65cb1b7582
1 changed files with 7 additions and 8 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue