Skip to content

Commit 323d67c

Browse files
authored
Merge pull request #13879 from panyx0718/doc
fix doc
2 parents cab2982 + b11372a commit 323d67c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

paddle/fluid/pybind/pybind.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ PYBIND11_PLUGIN(core) {
170170
A LoDTensor X can look like the example below. It contains 2 sequences.
171171
The first has length 2 and the second has length 3, as described by x.lod.
172172
173-
The first tensor dimension 6=2+3 is calculated from LoD if it's available.
173+
The first tensor dimension 5=2+3 is calculated from LoD if it's available.
174174
It means the total number of sequence element. In X, each element has 2
175-
columns, hence [6, 2].
175+
columns, hence [5, 2].
176176
177177
x.lod = [[2, 3]]
178178
x.data = [[1, 2], [3, 4],
179-
[5, 6], [7, 8], [9, 10], [11, 12]]
180-
x.shape = [6, 2]
179+
[5, 6], [7, 8], [9, 10]]
180+
x.shape = [5, 2]
181181
182182
LoD can have multiple levels (for example, a paragraph can have multiple
183183
sentences and a sentence can have multiple words). In the following

0 commit comments

Comments
 (0)