Updated tests to reflect manager tensor memory ownership
This commit is contained in:
parent
fc3d23d3f9
commit
4dedfadfef
10 changed files with 117 additions and 54 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue