Difference between revisions of "Computation graph"
Jump to navigation
Jump to search
(Created page with "==Computation Graph== Tips for drawing a computation graph from code: 1) Draw out the continuation spine: File:ComputationGraphSpineOnly.svg 2) then fill in the rest o...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | Tips for drawing a computation graph from code: | |
− | + | <nowiki> | |
+ | s1; | ||
+ | finish { // F1-Start | ||
+ | async s2; | ||
+ | finish { // F2-Start | ||
+ | async s3; | ||
+ | async s4; | ||
+ | s5; | ||
+ | } // F2-End | ||
+ | async s6; | ||
+ | s7; | ||
+ | } // F1-End | ||
+ | s8;</nowiki> | ||
1) Draw out the continuation spine: | 1) Draw out the continuation spine: | ||
− | [[File: | + | [[File:cg-A-ContinuationOnly.svg]] |
2) then fill in the rest of the nodes. | 2) then fill in the rest of the nodes. | ||
− | [[File: | + | [[File:cg-A.svg]] |