public static enum memory.data_type extends Enum<memory.data_type>
| Enum Constant and Description |
|---|
bf16
non-standard
[16-bit floating point with 7-bit mantissa](https://en.wikipedia.org/wiki/Bfloat16_floating-point_format).
|
e8m0
[MX-compliant 8-bit compliant scale data type](https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf) with 8-bit exponent.
|
f16
[16-bit/half-precision floating point](https://en.wikipedia.org/wiki/Half-precision_floating-point_format).
|
f32
[32-bit/single-precision floating point](https://en.wikipedia.org/wiki/Single-precision_floating-point_format).
|
f4_e2m1
[MX-compliant 4-bit float data type](https://www.opencompute.org/documents/ocp-microscaling-formats-mx-v1-0-spec-final-pdf) with 2-bit exponent and 1 bit mantissa.
|
f4_e3m0
4-bit float data type with 3-bit exponent and 0 bit mantissa.
|
f64 |
f8_e4m3
[OFP8 standard 8-bit floating-point](https://www.opencompute.org/documents/ocp-8-bit-floating-point-specification-ofp8-revision-1-0-2023-06-20-pdf)
with a 4-bit exponent and a 3-bit mantissa.
|
f8_e5m2
[OFP8 standard 8-bit floating-point](https://www.opencompute.org/documents/ocp-8-bit-floating-point-specification-ofp8-revision-1-0-2023-06-20-pdf)
with a 5-bit exponent and a 2-bit mantissa.
|
s32
32-bit signed integer.
|
s4
4-bit signed integer.
|
s8
8-bit signed integer.
|
u4
4-bit unsigned integer.
|
u8
8-bit unsigned integer.
|
undef
Undefined data type (used for empty memory descriptors).
|
| Modifier and Type | Field and Description |
|---|---|
int |
value |
| Modifier and Type | Method and Description |
|---|---|
memory.data_type |
intern() |
String |
toString() |
static memory.data_type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static memory.data_type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final memory.data_type undef
public static final memory.data_type f4_e3m0
public static final memory.data_type f4_e2m1
public static final memory.data_type e8m0
public static final memory.data_type f8_e5m2
public static final memory.data_type f8_e4m3
public static final memory.data_type f16
public static final memory.data_type bf16
public static final memory.data_type f32
public static final memory.data_type f64
public static final memory.data_type s32
public static final memory.data_type s8
public static final memory.data_type u8
public static final memory.data_type s4
public static final memory.data_type u4
public static memory.data_type[] values()
for (memory.data_type c : memory.data_type.values()) System.out.println(c);
public static memory.data_type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic memory.data_type intern()
public String toString()
toString in class Enum<memory.data_type>Copyright © 2026. All rights reserved.