Skip to content
Snippets Groups Projects
Commit 0d5d2942 authored by Abdul Rafae Noor's avatar Abdul Rafae Noor
Browse files

Fixing formating errors in backend passes doc

parent b613ef3c
No related branches found
No related tags found
No related merge requests found
...@@ -96,9 +96,10 @@ The above example will illustrate the steps in transforming the leaf node in thi ...@@ -96,9 +96,10 @@ The above example will illustrate the steps in transforming the leaf node in thi
If the original call was: If the original call was:
void* leaf = __hpvm__createNodeND(3, (void*) leaf1_clone , 5 , 6 , 7); `void* leaf = __hpvm__createNodeND(3, (void*) leaf1_clone , 5 , 6 , 7);`
The code would be transformed to: The code would be transformed to:
.. code-block:: c .. code-block:: c
for(int i = 0; i < 5; i++){ for(int i = 0; i < 5; i++){
...@@ -367,7 +368,7 @@ Let’s consider the end result of the `FuseHPVMTensorNodes` example: ...@@ -367,7 +368,7 @@ Let’s consider the end result of the `FuseHPVMTensorNodes` example:
.. code-block:: c .. code-block:: c
void all_fused(void *t1, size_t bytes_t1, void *t2, size_t bytes_t2, void *t3, size_t bytes_t3) { void all_fused(void *t1, size_t bytes_t1, void *t2, size_t bytes_t2, void *t3, size_t bytes_t3) {
void *r1 = __hpvm__tensor_convolution(t1, t2, 2, 2, 4, 4); void *r1 = __hpvm__tensor_convolution(t1, t2, 2, 2, 4, 4);
...@@ -433,7 +434,7 @@ codeGen(DFLeafNode* ) ...@@ -433,7 +434,7 @@ codeGen(DFLeafNode* )
.. code-block:: c .. code-block:: c
void all_fused_wrapper_api(void *t1, size_t bytes_t1, void *t2, size_t bytes_t2, void *t3, size_t bytes_t3) { void all_fused_wrapper_api(void *t1, size_t bytes_t1, void *t2, size_t bytes_t2, void *t3, size_t bytes_t3) {
__hpvm_request_tensor(t1, /* GPU */ 1); __hpvm_request_tensor(t1, /* GPU */ 1);
__hpvm_request_tensor(t2, /* GPU */ 1); __hpvm_request_tensor(t2, /* GPU */ 1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment