Function tvm::ffi::DTypeIsInt

Function tvm::ffi::DTypeIsInt#

Function Documentation#

bool tvm::ffi::DTypeIsInt(DLDataType dtype)#

Check whether a DLDataType is an integer type.

Parameters:

dtype – The DLDataType to check.

Returns:

True if dtype is a signed or unsigned integer type, false otherwise.