Skip to content

Commit 002a7b4

Browse files
authored
fix scatter op equation (#6304)
1 parent 16822fb commit 002a7b4

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

paddle/operators/scatter_op.cc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,15 @@ class ScatterOpMaker : public framework::OpProtoAndCheckerMaker {
8787
AddInput("Updates", "The updated value of updates op");
8888
AddOutput("Out", "The output of add op");
8989
AddComment(R"DOC(
90-
Scatter Operator by selecting from the first axis,
90+
Scatter Operator.
9191
92-
Out = Ref
92+
This operator obtains output by updating the input on selected indices on the first axis:
93+
94+
$$
95+
Out = Ref \\
9396
Out[Index] = Ref[Index] + Updates
97+
$$
98+
9499
)DOC");
95100
}
96101
};

0 commit comments

Comments
 (0)