Function tvm::runtime::CopyToBytes#
Defined in File tensor.h
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.