Function tvm::ffi::IsAligned

Function tvm::ffi::IsAligned#

Function Documentation#

inline bool tvm::ffi::IsAligned(const DLTensor &arr, size_t alignment)#

Check if the data in the DLTensor is aligned to the given alignment.

Parameters:
  • arr – The input DLTensor.

  • alignment – The alignment to check.

Returns:

True if the data is aligned to the given alignment, false otherwise.