You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: include/oneapi/dnnl/dnnl.hpp
+2
Original file line number
Diff line number
Diff line change
@@ -856,6 +856,8 @@ struct memory : public handle<dnnl_memory_t> {
856
856
enum class data_type {
857
857
/// Undefined data type (used for empty memory descriptors).
858
858
undef = dnnl_data_type_undef,
859
+
/// 4-bit float data type with 3-bit exponent and 0 bit mantissa.
860
+
f4_e3m0 = dnnl_f4_e3m0,
859
861
/// [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.
860
862
f4_e2m1 = dnnl_f4_e2m1,
861
863
/// [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.
Copy file name to clipboardexpand all lines: include/oneapi/dnnl/dnnl_common_types.h
+2
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,8 @@ typedef enum {
106
106
dnnl_e8m0=13,
107
107
/// [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.
108
108
dnnl_f4_e2m1=14,
109
+
/// 4-bit float data type with 3-bit exponent and 0 bit mantissa.
110
+
dnnl_f4_e3m0=15,
109
111
110
112
/// Parameter to allow internal only data_types without undefined behavior.
111
113
/// This parameter is chosen to be valid for so long as sizeof(int) >= 2.
0 commit comments