We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 002a7b4 commit a5167ceCopy full SHA for a5167ce
paddle/operators/lod_array_length_op.cc
@@ -43,12 +43,16 @@ class LoDArrayLengthProtoMaker : public framework::OpProtoAndCheckerMaker {
43
: OpProtoAndCheckerMaker(proto, op_checker) {
44
AddInput("X", "(LoDTensorArray) The input tensor array.");
45
AddOutput("Out", "(Tensor) 1x1 CPU Tensor of length, int64_t");
46
- AddComment(R"DOC(Get the length of lod tensor array
+ AddComment(R"DOC(
47
+LoDArrayLength Operator.
48
-Out = len(X)
49
+This operator obtains the length of lod tensor array:
50
+
51
+$$Out = len(X)$$
52
53
NOTE: The output is a CPU Tensor since the control variable should be only in
54
CPU and the length of LoDTensorArray should be used as control variables.
55
56
)DOC");
57
}
58
};
0 commit comments