Added optensorcopy operation
This commit is contained in:
parent
93c1ba126e
commit
236c349aa0
13 changed files with 238 additions and 45 deletions
|
|
@ -30,9 +30,7 @@ TEST(TestTensor, CopyFromHostData) {
|
|||
|
||||
sq->record<kp::OpCreateTensor>({tensorA, tensorB});
|
||||
|
||||
tensorA->mapDataIntoHostMemory();
|
||||
|
||||
tensorB->recordCopyFrom(tensorA, true);
|
||||
sq->record<kp::OpTensorCopy>({tensorA, tensorB});
|
||||
|
||||
sq->end();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue