Function tvm::ffi::GetDataSize(int64_t, DLDataType)

Function tvm::ffi::GetDataSize(int64_t, DLDataType)#

Function Documentation#

inline size_t tvm::ffi::GetDataSize(int64_t numel, DLDataType dtype)#

return the total number of bytes needed to store packed data

Parameters:
  • numel – the number of elements in the array

  • dtype – the data type of the array

Returns:

the total number of bytes needed to store packed data