Skip to content

Commit a5167ce

Browse files
authored
fix lod_array_lengh op equation (#6307)
1 parent 002a7b4 commit a5167ce

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

paddle/operators/lod_array_length_op.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,16 @@ class LoDArrayLengthProtoMaker : public framework::OpProtoAndCheckerMaker {
4343
: OpProtoAndCheckerMaker(proto, op_checker) {
4444
AddInput("X", "(LoDTensorArray) The input tensor array.");
4545
AddOutput("Out", "(Tensor) 1x1 CPU Tensor of length, int64_t");
46-
AddComment(R"DOC(Get the length of lod tensor array
46+
AddComment(R"DOC(
47+
LoDArrayLength Operator.
4748
48-
Out = len(X)
49+
This operator obtains the length of lod tensor array:
50+
51+
$$Out = len(X)$$
4952
5053
NOTE: The output is a CPU Tensor since the control variable should be only in
5154
CPU and the length of LoDTensorArray should be used as control variables.
55+
5256
)DOC");
5357
}
5458
};

0 commit comments

Comments
 (0)