Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zrr1999 committed Aug 24, 2022
1 parent 3b4e976 commit cce1792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinn/hlir/op/contrib/scatter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ir::Tensor Scatter(const ir::Tensor &A,
offset = offset * C->shape[i] + indices[i];
}
}
offset = common::AutoSimplify(offset);
// offset = common::AutoSimplify(offset);
auto idx = lang::CallExtern(extern_fun_name, {new_B, new_B->shape[-1], Expr(0), offset, Expr(1)});
// auto idx = lang::CallExtern(extern_fun_name, {new_B, new_B->shape[-1], indices[pos_axis], offset,
// Expr(1)});
Expand Down

0 comments on commit cce1792

Please sign in to comment.