From 701545979bdc10974c2d985dd116b6bd4a91f739 Mon Sep 17 00:00:00 2001 From: "Yang Yang(Tony)" Date: Mon, 6 Nov 2017 11:39:27 -0800 Subject: [PATCH] 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. --- paddle/framework/lod_tensor.md | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/paddle/framework/lod_tensor.md b/paddle/framework/lod_tensor.md index d147f1c425..10a8a7867f 100644 --- a/paddle/framework/lod_tensor.md +++ b/paddle/framework/lod_tensor.md @@ -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 - = = = - 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 - ||| || |||| | || ||| +0 3 4 6 + = = = + 3 3+1 4+2 ``` ## Slicing of LoD Tensors -- GitLab