提交 b11372a0 编写于 作者: X Xin Pan

fix doc

test=develop
上级 77e9339d
...@@ -170,14 +170,14 @@ PYBIND11_PLUGIN(core) { ...@@ -170,14 +170,14 @@ PYBIND11_PLUGIN(core) {
A LoDTensor X can look like the example below. It contains 2 sequences. A LoDTensor X can look like the example below. It contains 2 sequences.
The first has length 2 and the second has length 3, as described by x.lod. The first has length 2 and the second has length 3, as described by x.lod.
The first tensor dimension 6=2+3 is calculated from LoD if it's available. The first tensor dimension 5=2+3 is calculated from LoD if it's available.
It means the total number of sequence element. In X, each element has 2 It means the total number of sequence element. In X, each element has 2
columns, hence [6, 2]. columns, hence [5, 2].
x.lod = [[2, 3]] x.lod = [[2, 3]]
x.data = [[1, 2], [3, 4], x.data = [[1, 2], [3, 4],
[5, 6], [7, 8], [9, 10], [11, 12]] [5, 6], [7, 8], [9, 10]]
x.shape = [6, 2] x.shape = [5, 2]
LoD can have multiple levels (for example, a paragraph can have multiple LoD can have multiple levels (for example, a paragraph can have multiple
sentences and a sentence can have multiple words). In the following sentences and a sentence can have multiple words). In the following
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册