From 3715cdd9a824e3c718251f1de8c115fe892e69fa Mon Sep 17 00:00:00 2001 From: Yan Xu Date: Tue, 26 Dec 2023 06:30:35 -0500 Subject: [PATCH] remove wrong reshape Signed-off-by: Yan Xu --- src/Conversion/ONNXToStableHlo/DialectBuilder.cpp | 4 ---- src/Conversion/ONNXToStableHlo/DialectBuilder.hpp | 2 -- 2 files changed, 6 deletions(-) diff --git a/src/Conversion/ONNXToStableHlo/DialectBuilder.cpp b/src/Conversion/ONNXToStableHlo/DialectBuilder.cpp index 8ea4148c53..221430a4ec 100644 --- a/src/Conversion/ONNXToStableHlo/DialectBuilder.cpp +++ b/src/Conversion/ONNXToStableHlo/DialectBuilder.cpp @@ -83,10 +83,6 @@ Value StablehloBuilder::shaped_zero(mlir::Type type) const { return b().create(loc(), b().getZeroAttr(type)); } -Value StablehloBuilder::reshape(Type resultType, Value operand) const { - return b().create(loc(), resultType, operand); -} - mlir::Value StablehloBuilder::real_dynamic_slice(mlir::Type type, mlir::Value operand, mlir::Value startIndices, mlir::Value limitIndices, mlir::Value strides) const { diff --git a/src/Conversion/ONNXToStableHlo/DialectBuilder.hpp b/src/Conversion/ONNXToStableHlo/DialectBuilder.hpp index 2125d884bd..ac289628f1 100644 --- a/src/Conversion/ONNXToStableHlo/DialectBuilder.hpp +++ b/src/Conversion/ONNXToStableHlo/DialectBuilder.hpp @@ -42,8 +42,6 @@ struct StablehloBuilder : DialectBuilder { mlir::Value constant(mlir::Type type, double val) const; mlir::Value constantI64(int64_t val) const; mlir::Value shaped_zero(mlir::Type type) const; - // ReshapeOp - mlir::Value reshape(mlir::Type resultType, mlir::Value operand) const; // SliceOp mlir::Value real_dynamic_slice(mlir::Type type, mlir::Value operand, mlir::Value startIndices, mlir::Value limitIndices,