Skip to content

Commit 0c10b5f

Browse files
committed
Merge branch 'develop' of https://github.com/wanghaoshuang/Paddle into ctc_greedy_decode
2 parents 10dd632 + 63f5e47 commit 0c10b5f

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

paddle/operators/sequence_expand_op.cc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This operator expands input(X) according to LOD of input(Y).
5858
Following are cases to better explain how this works:
5959
Case 1:
6060
61-
Given 2-level a LoDTensor input(X)
61+
Given a 2-level LoDTensor input(X)
6262
X.lod = [[0, 2, 3],
6363
[0, 1, 3, 4]]
6464
X.data = [a, b, c, d]
@@ -75,9 +75,8 @@ then we get 2-level LoDTensor
7575
7676
Case 2:
7777
78-
Given a 0-level LoDTensor input(X)
78+
Given a common Tensor input(X)
7979
X.data = [a, b, c]
80-
X.lod = NULL
8180
X.dims = [3, 1]
8281
and input(Y)
8382
Y.lod = [[0, 2, 3, 6]]
@@ -89,9 +88,8 @@ then we get 1-level LoDTensor
8988
9089
Case 3:
9190
92-
Given a 0-level LoDTensor input(X)
91+
Given a common Tensor input(X)
9392
X.data = [[a, b], [c, d], [e, f]]
94-
X.lod = NULL
9593
X.dims = [3, 2]
9694
and input(Y)
9795
Y.lod = [[0, 2, 3, 6]]

0 commit comments

Comments
 (0)