From b826bec79db45a1ccf78df8132567250e74a3d33 Mon Sep 17 00:00:00 2001 From: Dave Liddell Date: Mon, 5 Feb 2024 15:29:53 -0800 Subject: [PATCH] clang format, part 2 --- lib/Dialect/Torch/IR/TorchOps.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Dialect/Torch/IR/TorchOps.cpp b/lib/Dialect/Torch/IR/TorchOps.cpp index 100795b24a0d..c557d2595598 100644 --- a/lib/Dialect/Torch/IR/TorchOps.cpp +++ b/lib/Dialect/Torch/IR/TorchOps.cpp @@ -2763,13 +2763,15 @@ void AtenDeviceWithIndexOp::getCanonicalizationPatterns( //===----------------------------------------------------------------------===// OpFoldResult AtenTensorOp::fold(FoldAdaptor adaptor) { - // If a torch.aten.tensor op is initialized by a list with a constant, single element, fold it into a torch.vtensor.literal + // If a torch.aten.tensor op is initialized by a list with a constant, single + // element, fold it into a torch.vtensor.literal auto resultTy = dyn_cast(getType()); Type eTy = resultTy.getDtype(); ShapedType shapedTy = resultTy.toBuiltinTensor().clone(eTy); SmallVector data; - if (matchPattern(getData(), m_TorchListOfConstantInts(data)) && data.size() == 1) { + if (matchPattern(getData(), m_TorchListOfConstantInts(data)) && + data.size() == 1) { Attribute attribute = IntegerAttr::get(eTy, data[0]); return DenseElementsAttr::get(shapedTy, attribute); }