---
title: "DType"
sidebar_label: "DType"
description: "Kotlin binding reference: DType."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[DType](index.md)

# DType

[common]\
enum [DType](index.md) : [Enum](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-enum/index.html)&lt;[DType](index.md)&gt; 

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](UNDEFINED/index.md) | [common]<br>[UNDEFINED](UNDEFINED/index.md) |
| [BOOL](BOOL/index.md) | [common]<br>[BOOL](BOOL/index.md) |
| [INT2](INT2/index.md) | [common]<br>[INT2](INT2/index.md) |
| [INT4](INT4/index.md) | [common]<br>[INT4](INT4/index.md) |
| [INT8](INT8/index.md) | [common]<br>[INT8](INT8/index.md) |
| [INT16](INT16/index.md) | [common]<br>[INT16](INT16/index.md) |
| [INT32](INT32/index.md) | [common]<br>[INT32](INT32/index.md) |
| [INT64](INT64/index.md) | [common]<br>[INT64](INT64/index.md) |
| [UINT1](UINT1/index.md) | [common]<br>[UINT1](UINT1/index.md) |
| [UINT2](UINT2/index.md) | [common]<br>[UINT2](UINT2/index.md) |
| [UINT4](UINT4/index.md) | [common]<br>[UINT4](UINT4/index.md) |
| [UINT8](UINT8/index.md) | [common]<br>[UINT8](UINT8/index.md) |
| [UINT16](UINT16/index.md) | [common]<br>[UINT16](UINT16/index.md) |
| [UINT32](UINT32/index.md) | [common]<br>[UINT32](UINT32/index.md) |
| [UINT64](UINT64/index.md) | [common]<br>[UINT64](UINT64/index.md) |
| [FLOAT16](FLOAT16/index.md) | [common]<br>[FLOAT16](FLOAT16/index.md) |
| [BFLOAT16](BFLOAT16/index.md) | [common]<br>[BFLOAT16](BFLOAT16/index.md) |
| [FLOAT32](FLOAT32/index.md) | [common]<br>[FLOAT32](FLOAT32/index.md) |
| [FLOAT64](FLOAT64/index.md) | [common]<br>[FLOAT64](FLOAT64/index.md) |
| [FLOAT8_E4M3](FLOAT8_E4M3/index.md) | [common]<br>[FLOAT8_E4M3](FLOAT8_E4M3/index.md) |
| [FLOAT8_E5M2](FLOAT8_E5M2/index.md) | [common]<br>[FLOAT8_E5M2](FLOAT8_E5M2/index.md) |
| [FLOAT8_E4M3FNUZ](FLOAT8_E4M3FNUZ/index.md) | [common]<br>[FLOAT8_E4M3FNUZ](FLOAT8_E4M3FNUZ/index.md) |
| [FLOAT8_E5M2FNUZ](FLOAT8_E5M2FNUZ/index.md) | [common]<br>[FLOAT8_E5M2FNUZ](FLOAT8_E5M2FNUZ/index.md) |
| [FLOAT8_E8M0](FLOAT8_E8M0/index.md) | [common]<br>[FLOAT8_E8M0](FLOAT8_E8M0/index.md) |
| [FLOAT6_E2M3](FLOAT6_E2M3/index.md) | [common]<br>[FLOAT6_E2M3](FLOAT6_E2M3/index.md) |
| [FLOAT6_E3M2](FLOAT6_E3M2/index.md) | [common]<br>[FLOAT6_E3M2](FLOAT6_E3M2/index.md) |
| [FLOAT4_E2M1](FLOAT4_E2M1/index.md) | [common]<br>[FLOAT4_E2M1](FLOAT4_E2M1/index.md) |

## Types

| Name | Summary |
|---|---|
| [Companion](Companion/index.md) | [common]<br>object [Companion](Companion/index.md) |

## Properties

| Name | Summary |
|---|---|
| [code](code.md) | [common]<br>val [code](code.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |
| [name](../PaddingSide/LEFT/index.md) | [common]<br>val [name](../PaddingSide/LEFT/index.md): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) |
| [ordinal](../PaddingSide/LEFT/index.md) | [common]<br>val [ordinal](../PaddingSide/LEFT/index.md): [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) |

## Functions

| Name | Summary |
|---|---|
| [valueOf](valueOf.md) | [common]<br>fun [valueOf](valueOf.md)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [DType](index.md)<br>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](values.md) | [common]<br>fun [values](values.md)(): [Array](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html)&lt;[DType](index.md)&gt;<br>Returns an array containing the constants of this enum type, in the order they're declared. |