Skip to content

Commit

Permalink
fix(onnx): 改正 Concat 形状推导中的笔误
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Nov 13, 2023
1 parent 10712b5 commit 636bf70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/07onnx/src/operators/concat.cc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace refactor::onnx {
return Err(InferError(ERROR_MSG("Input shape not support")));
}
for (auto i : range0_(static_cast<int64_t>(output.size()))) {
if (i == axis) {
if (i == axis_) {
EXPECT_VAL(output[i], a)
EXPECT_VAL(input.shape[i], b)
output[i] = DimExpr(a + b);
Expand Down

0 comments on commit 636bf70

Please sign in to comment.