Skip to content

Commit 90172cd

Browse files
authored
Update pybind.cc
test=develop
1 parent 3f08b08 commit 90172cd

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
@@ -169,14 +169,14 @@ PYBIND11_PLUGIN(core) {
169169
A LoDTensor X can look like the example below. It contains 2 sequences.
170170
The first has length 2 and the second has length 3, as described by x.lod.
171171
172-
The first tensor dimension 6=2+3 is calculated from LoD if it's available.
172+
The first tensor dimension 5=2+3 is calculated from LoD if it's available.
173173
It means the total number of sequence element. In X, each element has 2
174-
columns, hence [6, 2].
174+
columns, hence [5, 2].
175175
176176
x.lod = [[2, 3]]
177177
x.data = [[1, 2], [3, 4],
178-
[5, 6], [7, 8], [9, 10], [11, 12]]
179-
x.shape = [6, 2]
178+
[5, 6], [7, 8], [9, 10]]
179+
x.shape = [5, 2]
180180
181181
LoD can have multiple levels (for example, a paragraph can have multiple
182182
sentences and a sentence can have multiple words). In the following

0 commit comments

Comments
 (0)