Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
panickal-xmos committed Aug 2, 2024
1 parent c9e7748 commit 4a8bf20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xformer/Transforms/ReplaceConcat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ struct SplitConcatPattern : public OpRewritePattern<TFL::ConcatenationOp> {
auto outputType = concatOp.getOutput().getType().cast<RankedTensorType>();
Type elementType = outputType.getElementType();
ArrayRef<int64_t> outputShape = outputType.getShape();
int axis = concatOp.getAxis();
axis = -1 ? outputType.getRank() - 1 : axis;
const int axis = concatOp.getAxis() == -1 ? outputType.getRank() - 1
: concatOp.getAxis();

int axisShape = 0;
for (int i = 0; i < CONCAT_OP_MAX_INPUTS; i++) {
Expand Down

0 comments on commit 4a8bf20

Please sign in to comment.