From 974db2cd4bfbbb7152bb5eb60b31a6ec2d3a110a Mon Sep 17 00:00:00 2001 From: Michael Levesque-Dion Date: Tue, 6 Feb 2024 17:20:26 -0800 Subject: [PATCH] Use new constant function instead of deleted makeScalar function This seems to be from https://github.com/openxla/stablehlo/pull/1987. Not sure how presubmit failed to catch this. --- stablehlo/reference/Ops.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/stablehlo/reference/Ops.cpp b/stablehlo/reference/Ops.cpp index 4bc3b080712..ca3f0d81c80 100644 --- a/stablehlo/reference/Ops.cpp +++ b/stablehlo/reference/Ops.cpp @@ -1115,9 +1115,8 @@ Tensor evalCollectiveBroadcastOp( return process->rendezvous(*processGroup, channelId, operand) .lookup((*processGroup)[0]); - return evalBroadcastInDimOp( - makeScalar(convert(operand.getElementType(), 0.0)), {}, - operand.getType()); + return evalBroadcastInDimOp(constant(0.0, operand.getElementType()), {}, + operand.getType()); } Tensor evalCollectivePermuteOp(