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,