Updated tests to reflect manager tensor memory ownership

This commit is contained in:
Alejandro Saucedo 2021-02-08 19:17:32 +00:00
parent fc3d23d3f9
commit 4dedfadfef
10 changed files with 117 additions and 54 deletions

View file

@ -30,13 +30,15 @@ TEST(TestProcessingIterations, IterateThroughMultipleSumAndCopies)
}
)");
mgr.rebuildTensors({ tensorA, tensorB });
{
std::shared_ptr<kp::Sequence> sq =
mgr.getOrCreateManagedSequence("default");
sq->begin();
sq->record<kp::OpTensorCreate>({ tensorA, tensorB });
sq->record<kp::OpTensorSyncDevice>({ tensorA, tensorB });
sq->end();