Function tvm::runtime::CopyToBytes

Function tvm::runtime::CopyToBytes#

Function Documentation#

void tvm::runtime::CopyToBytes(ffi::TensorView source, void *destination_bytes, size_t nbytes, TVMStreamHandle stream = nullptr)#

Copy a contiguous tensor into a byte buffer of exactly nbytes.

Note

Synchronizes stream before returning.