未验证 提交 70154597 编写于 作者: Y Yang Yang(Tony) 提交者: GitHub

Update lod_tensor.md (#5383)

An important change on lod tensor indexing. A higher level offset will be based on its next level rather than an absolute offset.
上级 c9b57dcc
......@@ -140,19 +140,9 @@ Similarly, the lengths in the top level LoD
are transformed into offsets of elements/words as follows:
```
0 9 10 15
0 3 4 6
= = =
3+2+4 1+9 2+3+10
```
so we can tell that the first article is from word 0 to word 9, and the second article is from word 9 to word 10.
The complete offset representation is as follows:
```
0 9 10 15
0 3 5 9 10 12 15
||| || |||| | || |||
3 3+1 4+2
```
## Slicing of LoD Tensors
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册