Skip to content

Commit

Permalink
remove wrong reshape
Browse files Browse the repository at this point in the history
Signed-off-by: Yan Xu <[email protected]>
  • Loading branch information
Connor-XY committed Dec 26, 2023
1 parent f922808 commit 3715cdd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions src/Conversion/ONNXToStableHlo/DialectBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,6 @@ Value StablehloBuilder::shaped_zero(mlir::Type type) const {
return b().create<stablehlo::ConstantOp>(loc(), b().getZeroAttr(type));
}

Value StablehloBuilder::reshape(Type resultType, Value operand) const {
return b().create<stablehlo::ReshapeOp>(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 {
Expand Down
2 changes: 0 additions & 2 deletions src/Conversion/ONNXToStableHlo/DialectBuilder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3715cdd

Please sign in to comment.