mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-11 08:59:59 +00:00
Updated tests to reflect manager tensor memory ownership
This commit is contained in:
@@ -23,12 +23,13 @@ TEST(TestTensor, CopyFromHostData)
|
||||
|
||||
kp::Manager mgr;
|
||||
|
||||
mgr.rebuildTensors({ tensorA, tensorB });
|
||||
mgr.evalOpDefault<kp::OpTensorSyncDevice>({ tensorA, tensorB });
|
||||
|
||||
if (std::shared_ptr<kp::Sequence> sq =
|
||||
mgr.getOrCreateManagedSequence("new")) {
|
||||
sq->begin();
|
||||
|
||||
sq->record<kp::OpTensorCreate>({ tensorA, tensorB });
|
||||
|
||||
sq->record<kp::OpTensorCopy>({ tensorA, tensorB });
|
||||
|
||||
sq->end();
|
||||
|
||||
Reference in New Issue
Block a user