diff --git a/xla/hlo/ir/hlo_instruction.cc b/xla/hlo/ir/hlo_instruction.cc index 55369ff20779f..dc2239d79a0cd 100644 --- a/xla/hlo/ir/hlo_instruction.cc +++ b/xla/hlo/ir/hlo_instruction.cc @@ -1004,7 +1004,7 @@ absl::StatusOr> HloInstruction::CreateFromProto( TF_RET_CHECK(absl::c_all_of(proto.precision_config().operand_precision(), PrecisionConfig::Precision_IsValid)); PrecisionConfig precision_config = proto.precision_config(); - precision_config.mutable_operand_precision()->Resize( + precision_config.mutable_operand_precision()->resize( proto.operand_ids_size(), PrecisionConfig::DEFAULT); instruction = CreateConvolve( shape, operands(0), operands(1), @@ -1107,7 +1107,7 @@ absl::StatusOr> HloInstruction::CreateFromProto( TF_RET_CHECK(absl::c_all_of(proto.precision_config().operand_precision(), PrecisionConfig::Precision_IsValid)); PrecisionConfig precision_config = proto.precision_config(); - precision_config.mutable_operand_precision()->Resize( + precision_config.mutable_operand_precision()->resize( proto.operand_ids_size(), PrecisionConfig::DEFAULT); *custom_call_instr->mutable_precision_config() = precision_config; custom_call_instr->set_output_to_operand_aliasing( @@ -1210,7 +1210,7 @@ absl::StatusOr> HloInstruction::CreateFromProto( TF_RET_CHECK(absl::c_all_of(proto.precision_config().operand_precision(), PrecisionConfig::Precision_IsValid)); PrecisionConfig precision_config = proto.precision_config(); - precision_config.mutable_operand_precision()->Resize( + precision_config.mutable_operand_precision()->resize( proto.operand_ids_size(), PrecisionConfig::DEFAULT); auto operand_vector = all_operands(); instruction = std::make_unique( @@ -1229,7 +1229,7 @@ absl::StatusOr> HloInstruction::CreateFromProto( PrecisionConfig::Precision_IsValid)); PrecisionConfig precision_config = proto.precision_config(); // Only the lhs and rhs have precisions. - precision_config.mutable_operand_precision()->Resize( + precision_config.mutable_operand_precision()->resize( HloRaggedDotInstruction::kOperands - 1, PrecisionConfig::DEFAULT); auto operand_vector = all_operands(); instruction = std::make_unique( @@ -1248,7 +1248,7 @@ absl::StatusOr> HloInstruction::CreateFromProto( PrecisionConfig::Precision_IsValid)); PrecisionConfig precision_config = proto.precision_config(); // Only the lhs and rhs have precisions. - precision_config.mutable_operand_precision()->Resize( + precision_config.mutable_operand_precision()->resize( HloScaledDotInstruction::kOperands - 2, PrecisionConfig::DEFAULT); auto operand_vector = all_operands(); instruction = std::make_unique(