Skip to content

Commit ec4ca20

Browse files
amitsabne1copybara-github
authored andcommitted
[XLA] Add S1 and U1 as data types
PiperOrigin-RevId: 707136925
1 parent 7c28a01 commit ec4ca20

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

third_party/py/ml_dtypes/workspace.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ float8 varieties, and int4.
77
load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls")
88

99
def repo():
10-
ML_DTYPES_COMMIT = "c12281a501469d553483eb4d68065826b9c2fcb5"
11-
ML_DTYPES_SHA256 = "cee11c4bed5147bece9e385a88c20887344ad9b89b3acb09bf3d7c9c21fb9715"
10+
ML_DTYPES_COMMIT = "215c9f02a121e6286662b2efd30546c71054d5e5"
11+
ML_DTYPES_SHA256 = "4a03237ef6345e1467a33d126176b9c6a7539b0f60a34b344f39b3c9e8b82438"
1212
tf_http_archive(
1313
name = "ml_dtypes",
1414
build_file = "//third_party/py/ml_dtypes:ml_dtypes.BUILD",

tsl/platform/ml_dtypes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ using float8_e4m3b11fnuz = ::ml_dtypes::float8_e4m3b11fnuz;
2828
using float8_e5m2 = ::ml_dtypes::float8_e5m2;
2929
using float8_e5m2fnuz = ::ml_dtypes::float8_e5m2fnuz;
3030

31+
using int1 = ::ml_dtypes::int1;
32+
using uint1 = ::ml_dtypes::uint1;
3133
using int2 = ::ml_dtypes::int2;
3234
using uint2 = ::ml_dtypes::uint2;
3335
using int4 = ::ml_dtypes::int4;

0 commit comments

Comments
 (0)