diff --git a/paddle/majel/README.md b/paddle/majel/README.md index 0f49b83c2ac724ac9d036d134d761c53b89a6260..2573738b66b2bf514d06358262ef941e833daf0f 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>, @@ -108,7 +106,6 @@ Because `variant` may be thought of as "multi-type, single value", we can utiliz arr[make_ddim({0, 1})] = 1.0; ``` - ## implement Tensor in Paddle Before writing code, please make sure you already look through Majel Source Code and grabbed the design philosophy of `DArray` in Majel. @@ -130,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`.