From 397dcf0dbaefabbcfc728188011aee9663bd3da0 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Mon, 15 May 2017 20:12:02 +0800 Subject: [PATCH] add brief explanation of DDim usage --- paddle/majel/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/paddle/majel/README.md b/paddle/majel/README.md index 6482d1402..2573738b6 100644 --- a/paddle/majel/README.md +++ b/paddle/majel/README.md @@ -48,9 +48,7 @@ int main() } ``` -In Majel, `DDimVar` is derived from `Dim`, `DArrayVar` is from -`Array`. - +In Majel, `DDimVar` is derived from `Dim`, `DArrayVar` is from `Array`. ```c++ template @@ -70,8 +68,8 @@ private: Dim stride_; T* ptr_; }; -``` - +``` + ```c++ typedef boost::variant Place; typedef boost::variant, Dim<2>, Dim<3>, Dim<4>, Dim<5>, @@ -129,7 +127,7 @@ To assign subtasks to our colleagues, we have to discuss how to divide it to ind - [ ] 3. Re-implement `Dim`. `Dim` is an excellent implementation in Majel. - + > ??? - [ ] 4. Re-implement `Array/Tensor`. -- GitLab