From 77973172823805ef6ae789ea89333ac8bf005d20 Mon Sep 17 00:00:00 2001 From: Vremold Date: Tue, 2 Aug 2022 18:12:04 +0800 Subject: [PATCH] [NFC] format code --- lib/Conversion/TorchToMhlo/ReductionOp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Conversion/TorchToMhlo/ReductionOp.cpp b/lib/Conversion/TorchToMhlo/ReductionOp.cpp index 481951f2286a..bbe030ca3fda 100644 --- a/lib/Conversion/TorchToMhlo/ReductionOp.cpp +++ b/lib/Conversion/TorchToMhlo/ReductionOp.cpp @@ -258,7 +258,7 @@ LogicalResult ConvertAtenReductionOp::matchAndRewrite( Value input = adaptor.self(); auto inputTy = input.getType().template dyn_cast(); if (!inputTy) { - return op.emitError("Only Tensor types supported in MHLO"); + return op.emitError("only Tensor types supported in MHLO"); } auto inputElemTy = inputTy.getElementType(); if (!inputElemTy.isIntOrFloat()) { @@ -462,7 +462,7 @@ LogicalResult ConvertAtenReductionOp::matchAndRewrite( Value input = adaptor.self(); auto inputTy = input.getType().dyn_cast(); if (!inputTy) { - return op.emitError("Only Tensor types supported in MHLO"); + return op.emitError("only Tensor types supported in MHLO"); } auto dtype = adaptor.dtype(); if (!dtype.getType().isa()) { @@ -495,7 +495,7 @@ LogicalResult ConvertAtenReductionOp::matchAndRewrite( for (auto d : inputDims) { d = toPositiveDim(d, inputTy.getRank()); - // Drop invaid dim + // Drop invaid dims if (isValidDim(d, inputTy.getRank())) { dims.push_back(d); }