//clika-runtime/io.clika.runtime/DType
DType
[common]
enum DType : Enum<DType>
The element format of a tensor's values. The set covers booleans, signed and unsigned integers (sub-byte widths included), the IEEE-style floats and the narrow floating formats quantized models use.
Entries
| UNDEFINED | [common] UNDEFINED |
| BOOL | [common] BOOL |
| INT2 | [common] INT2 |
| INT4 | [common] INT4 |
| INT8 | [common] INT8 |
| INT16 | [common] INT16 |
| INT32 | [common] INT32 |
| INT64 | [common] INT64 |
| UINT1 | [common] UINT1 |
| UINT2 | [common] UINT2 |
| UINT4 | [common] UINT4 |
| UINT8 | [common] UINT8 |
| UINT16 | [common] UINT16 |
| UINT32 | [common] UINT32 |
| UINT64 | [common] UINT64 |
| FLOAT16 | [common] FLOAT16 |
| BFLOAT16 | [common] BFLOAT16 |
| FLOAT32 | [common] FLOAT32 |
| FLOAT64 | [common] FLOAT64 |
| FLOAT8_E4M3 | [common] FLOAT8_E4M3 |
| FLOAT8_E5M2 | [common] FLOAT8_E5M2 |
| FLOAT8_E4M3FNUZ | [common] FLOAT8_E4M3FNUZ |
| FLOAT8_E5M2FNUZ | [common] FLOAT8_E5M2FNUZ |
| FLOAT8_E8M0 | [common] FLOAT8_E8M0 |
| FLOAT6_E2M3 | [common] FLOAT6_E2M3 |
| FLOAT6_E3M2 | [common] FLOAT6_E3M2 |
| FLOAT4_E2M1 | [common] FLOAT4_E2M1 |
Types
| Name | Summary |
|---|---|
| Companion | [common] object Companion |
Properties
| Name | Summary |
|---|---|
| code | [common] val code: Int |
| name | [common] val name: String |
| ordinal | [common] val ordinal: Int |
Functions
| Name | Summary |
|---|---|
| valueOf | [common] fun valueOf(value: String): DType Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.) |
| values | [common] fun values(): Array<DType> Returns an array containing the constants of this enum type, in the order they're declared. |