diff --git a/hpvm/docs/developerdocs/backend-passes.rst b/hpvm/docs/developerdocs/backend-passes.rst index d596193468b3c6dd2f86ddc04c3a8d491d743897..3d975dfe1f2e44dd974d42ab513512dd5e139f85 100644 --- a/hpvm/docs/developerdocs/backend-passes.rst +++ b/hpvm/docs/developerdocs/backend-passes.rst @@ -96,9 +96,10 @@ The above example will illustrate the steps in transforming the leaf node in thi 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: + .. code-block:: c for(int i = 0; i < 5; i++){ @@ -367,7 +368,7 @@ Let’s consider the end result of the `FuseHPVMTensorNodes` example: .. 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); @@ -433,7 +434,7 @@ codeGen(DFLeafNode* ) .. 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(t2, /* GPU */ 1);