Updated tests to match new functions and added test to ensure seuqence is destroyed
This commit is contained in:
parent
0d9a9758da
commit
4baba33681
11 changed files with 75 additions and 75 deletions
|
|
@ -13,7 +13,7 @@ TEST(TestOpTensorSync, SyncToDeviceMemorySingleTensor)
|
|||
|
||||
std::shared_ptr<kp::Tensor> tensorA{ new kp::Tensor(testVecPreA) };
|
||||
|
||||
mgr.rebuildTensors({ tensorA }, false);
|
||||
mgr.rebuild({ tensorA }, false);
|
||||
|
||||
EXPECT_TRUE(tensorA->isInit());
|
||||
|
||||
|
|
@ -37,7 +37,7 @@ TEST(TestOpTensorSync, SyncToDeviceMemoryMultiTensor)
|
|||
std::shared_ptr<kp::Tensor> tensorB{ new kp::Tensor({ 0, 0, 0 }) };
|
||||
std::shared_ptr<kp::Tensor> tensorC{ new kp::Tensor({ 0, 0, 0 }) };
|
||||
|
||||
mgr.rebuildTensors({ tensorA, tensorB, tensorC }, false);
|
||||
mgr.rebuild({ tensorA, tensorB, tensorC }, false);
|
||||
|
||||
EXPECT_TRUE(tensorA->isInit());
|
||||
EXPECT_TRUE(tensorB->isInit());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue