Skip to content

Commit a60b3a5

Browse files
committed
fix doc of seq_expand_op
1 parent c5afc3f commit a60b3a5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

paddle/operators/seq_expand_op.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ This operator expands input(X) according to LOD of input(Y).
5959
Following are cases to better explain how this works:
6060
Case 1:
6161
62-
Given 2-level a LoDTensor input(X)
62+
Given a 2-level LoDTensor input(X)
6363
X.lod = [[0, 2, 3],
6464
[0, 1, 3, 4]]
6565
X.data = [a, b, c, d]
@@ -76,9 +76,8 @@ then we get 2-level LoDTensor
7676
7777
Case 2:
7878
79-
Given a 0-level LoDTensor input(X)
79+
Given a common Tensor input(X)
8080
X.data = [a, b, c]
81-
X.lod = NULL
8281
X.dims = [3, 1]
8382
and input(Y)
8483
Y.lod = [[0, 2, 3, 6]]
@@ -90,9 +89,8 @@ then we get 1-level LoDTensor
9089
9190
Case 3:
9291
93-
Given a 0-level LoDTensor input(X)
92+
Given a common Tensor input(X)
9493
X.data = [[a, b], [c, d], [e, f]]
95-
X.lod = NULL
9694
X.dims = [3, 2]
9795
and input(Y)
9896
Y.lod = [[0, 2, 3, 6]]

0 commit comments

Comments
 (0)