From 6eef3880e07ceecf1b596492d7670b7c880b5596 Mon Sep 17 00:00:00 2001 From: Han Qi Date: Wed, 29 Nov 2023 23:22:24 +0000 Subject: [PATCH] test removing explicit broadcast --- torch_xla/csrc/helpers.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/torch_xla/csrc/helpers.cpp b/torch_xla/csrc/helpers.cpp index 995e43078b6..19da05b3c01 100644 --- a/torch_xla/csrc/helpers.cpp +++ b/torch_xla/csrc/helpers.cpp @@ -614,6 +614,7 @@ xla::Shape XlaHelpers::GetPromotedDynamicShape(const xla::Shape& shape1, std::pair XlaHelpers::PromoteShapes(xla::XlaOp op1, xla::XlaOp op2) { + return std::make_pair(op1, op2); const xla::Shape& shape1 = ShapeHelper::ShapeOfXlaOp(op1); const xla::Shape& shape2 = ShapeHelper::ShapeOfXlaOp(op2); if (xla::ShapeUtil::Compatible(shape1, shape2)) {