提交 1c589de4 编写于 作者: L liutuo 提交者: liuqi

update daocs

上级 352f5fab
How to run tests How to run tests
================ =================
To run a test, you need to first cross compile the code, push the binary To run a test, you need to first cross compile the code, push the binary
into the device and then execute the binary. To automate this process, into the device and then execute the binary. To automate this process,
...@@ -9,7 +9,7 @@ You need to make sure your device is connected to you dev machine before ...@@ -9,7 +9,7 @@ You need to make sure your device is connected to you dev machine before
running tests. running tests.
Run unit tests Run unit tests
-------------- ---------------
MACE use [gtest](https://github.com/google/googletest) for unit tests. MACE use [gtest](https://github.com/google/googletest) for unit tests.
......
Memory layout Memory layout
=========================== ==============
CPU runtime memory layout CPU runtime memory layout
------------------------- --------------------------
The CPU tensor buffer is organized in the following order: The CPU tensor buffer is organized in the following order:
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Buffer - Buffer
...@@ -22,7 +20,7 @@ The CPU tensor buffer is organized in the following order: ...@@ -22,7 +20,7 @@ The CPU tensor buffer is organized in the following order:
- W - W
GPU runtime memory layout GPU runtime memory layout
----------------------------- --------------------------
GPU runtime implementation base on OpenCL, which uses 2D image with CL_RGBA GPU runtime implementation base on OpenCL, which uses 2D image with CL_RGBA
channel order as the tensor storage. This requires OpenCL 1.2 and above. channel order as the tensor storage. This requires OpenCL 1.2 and above.
...@@ -34,14 +32,12 @@ The following tables describe the mapping from different type of tensors to ...@@ -34,14 +32,12 @@ The following tables describe the mapping from different type of tensors to
2D RGBA Image. 2D RGBA Image.
Input/Output Tensor Input/Output Tensor
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
The Input/Output Tensor is stored in NHWC format: The Input/Output Tensor is stored in NHWC format:
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Buffer - Buffer
...@@ -64,9 +60,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the ...@@ -64,9 +60,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the
coordination relation between **Image** and **Buffer**. coordination relation between **Image** and **Buffer**.
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Pixel coordinate relationship - Pixel coordinate relationship
...@@ -82,12 +76,10 @@ coordination relation between **Image** and **Buffer**. ...@@ -82,12 +76,10 @@ coordination relation between **Image** and **Buffer**.
- k=[0, 4) - k=[0, 4)
Filter Tensor Filter Tensor
~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor * - Tensor
- Buffer - Buffer
...@@ -106,9 +98,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the ...@@ -106,9 +98,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the
coordination relation between **Image** and **Buffer**. coordination relation between **Image** and **Buffer**.
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Pixel coordinate relationship - Pixel coordinate relationship
...@@ -121,12 +111,10 @@ coordination relation between **Image** and **Buffer**. ...@@ -121,12 +111,10 @@ coordination relation between **Image** and **Buffer**.
- only support multiplier == 1, k=[0, 4) - only support multiplier == 1, k=[0, 4)
1-D Argument Tensor 1-D Argument Tensor
~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Buffer - Buffer
...@@ -141,9 +129,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the ...@@ -141,9 +129,7 @@ Each Pixel of **Image** contains 4 elements. The below table list the
coordination relation between **Image** and **Buffer**. coordination relation between **Image** and **Buffer**.
.. list-table:: .. list-table::
:widths: auto
:header-rows: 1 :header-rows: 1
:align: left
* - Tensor type * - Tensor type
- Pixel coordinate relationship - Pixel coordinate relationship
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册