jmorrill opened a new pull request #4970: Added CopyFromBytes and CopyToBytes convenience methods. Fixed typos. URL: https://github.com/apache/incubator-tvm/pull/4970 It is not very intuitive (specially as a beginner) on how to copy a `void*` to an `NDArray`. Currently one may have to configure a `DLTensor `and run an `NDArray::CopyTo(...)`. This PR adds two member functions to NDArray to copy to and from a `void*`. `NDArray::CopyFromBytes(const void* data, size_t nbytes)` and `NDArray::CopyToBytes(void* data, size_t nbytes)` Included in this PR are also a few typo fixes.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services