Skip to content
This repository was 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 20, 2022
1 parent 5a4fdc6 commit 8354111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cinn/frontend/net_builder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Variable NetBuilder::Gather(const Variable& x, const Variable& index, const int&

Variable NetBuilder::GatherNd(const Variable& x, const Variable& index, const std::vector<int>& axes) {
Instruction instr("gather", {x, index});
instr.SetAttr("axis", axis);
instr.SetAttr("axis", axes);
InferShape(instr);
AppendInstruction(instr);
return instr.GetOutput(0);
Expand Down

0 comments on commit 8354111

Please sign in to comment.