Function tvm::ffi::DTypeAbbrev

Function tvm::ffi::DTypeAbbrev#

Function Documentation#

inline std::string tvm::ffi::DTypeAbbrev(DLDataType dtype)#

Convert a DLDataType to a compact abbreviation for text formats.

Parameters:

dtype – The DLDataType to convert.

Returns:

The compact string, such as i32, f16, or bf16.