Function tvm::ffi::GetDataSize(const DLTensor&)

Function tvm::ffi::GetDataSize(const DLTensor&)#

Function Documentation#

inline size_t tvm::ffi::GetDataSize(const DLTensor &arr)#

return the size of data the DLTensor holds, in terms of number of bytes

Parameters:

arr – the input DLTensor

Returns:

number of bytes of data in the DLTensor.