From 066b88e138b80cdf76ab10142d450269e8ef5bd0 Mon Sep 17 00:00:00 2001 From: Yitong Huang Date: Thu, 5 Dec 2024 10:41:31 +0800 Subject: [PATCH] Temporarily disable bound information of MHLO for BladeDISC --- xla/translate/hlo_to_mhlo/hlo_utils.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/xla/translate/hlo_to_mhlo/hlo_utils.h b/xla/translate/hlo_to_mhlo/hlo_utils.h index b570125c654da..57648b566fb23 100644 --- a/xla/translate/hlo_to_mhlo/hlo_utils.h +++ b/xla/translate/hlo_to_mhlo/hlo_utils.h @@ -66,9 +66,10 @@ static StatusOr ConvertTensorShapeToType(const Shape& xla_ty, } using mlir::mhlo::TypeExtensionsAttr; mlir::Attribute encoding; - if (is_bounded_dynamic) { - encoding = TypeExtensionsAttr::get(builder.getContext(), bounds); - } + // Temporarily disable bound information of MHLO for BladeDISC backend. + // if (is_bounded_dynamic) { + // encoding = TypeExtensionsAttr::get(builder.getContext(), bounds); + // } using mlir::sparse_tensor::SparseTensorEncodingAttr; // TODO(b/238903065): We don't yet support bounded dynamism shapes and