Function tvm::runtime::CopyFromBytes#
Defined in File tensor.h
Function Documentation#
-
void tvm::runtime::CopyFromBytes(ffi::TensorView destination, const void *source_bytes, size_t nbytes, TVMStreamHandle stream = nullptr)#
Copy exactly nbytes from a byte buffer into a contiguous tensor.
Note
Synchronizes stream before returning.