From 95de5b7ac9dfa4fc4681b87870056d30153fdf57 Mon Sep 17 00:00:00 2001 From: Tian Jin Date: Tue, 24 Dec 2019 02:07:21 -0500 Subject: [PATCH] revert changes to lower-to-krnl --- src/pass/lower_frontend_to_krnl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pass/lower_frontend_to_krnl.cpp b/src/pass/lower_frontend_to_krnl.cpp index c05f72d..90954c7 100644 --- a/src/pass/lower_frontend_to_krnl.cpp +++ b/src/pass/lower_frontend_to_krnl.cpp @@ -616,7 +616,7 @@ struct ONNXElementwiseUnaryOpLowering : public ConversionPattern { : ConversionPattern(ElementwiseUnaryOp::getOperationName(), 1, ctx) {} PatternMatchResult matchAndRewrite(Operation *op, ArrayRef operands, - ConversionPatternRewriter &rewriter) const override { + ConversionPatternRewriter &rewriter) const final { // TODO: Check that the types are valid. // An element-wise unary operation must have all operands and the result of // the same type. This should have been verified by the verifier. @@ -719,7 +719,7 @@ struct ONNXElementwiseVariadicOpLowering : public ConversionPattern { : ConversionPattern(ElementwiseVariadicOp::getOperationName(), 1, ctx) {} PatternMatchResult matchAndRewrite(Operation *op, ArrayRef operands, - ConversionPatternRewriter &rewriter) const override { + ConversionPatternRewriter &rewriter) const final { // TODO: Check that the types are valid. // An element-wise variadic operation must have all operands and the result // of the same type. This should have been verified by the verifier. @@ -832,7 +832,7 @@ struct ONNXReshapeOpLowering : public ConversionPattern { PatternMatchResult matchAndRewrite(Operation *op, ArrayRef operands, - ConversionPatternRewriter &rewriter) const override { + ConversionPatternRewriter &rewriter) const final { auto tensorType = (*op->result_type_begin()).cast(); auto loc = op->getLoc();