Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions paddle/operators/scatter_op.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,15 @@ class ScatterOpMaker : public framework::OpProtoAndCheckerMaker {
AddInput("Updates", "The updated value of updates op");
AddOutput("Out", "The output of add op");
AddComment(R"DOC(
Scatter Operator by selecting from the first axis,
Scatter Operator.

Out = Ref
This operator obtains output by updating the input on selected indices on the first axis:

$$
Out = Ref \\
Out[Index] = Ref[Index] + Updates
$$

)DOC");
}
};
Expand Down