1313 * executable target which can be used to test out the API's of this framework.
1414 * The playground starts with a blank main function.
1515 * @code
16- #include "../ graph_framework/jit .hpp"
16+ #include "graph_framework.hpp"
1717
1818int main(int argc, const char * argv[]) {
1919 START_GPU
@@ -30,7 +30,7 @@ int main(int argc, const char * argv[]) {
3030 * main. This will allow us to play with different floating point types. For now
3131 * we will start with a simple float type.
3232 * @code
33- #include "../ graph_framework/jit .hpp"
33+ #include "graph_framework.hpp"
3434
3535template<jit::float_scalar T>
3636void run_tutorial() {
@@ -84,16 +84,16 @@ void run_tutorial() {
8484 * so all method are called using the <tt>-></tt> operator.
8585 *
8686 * @subsection tutorial_constant Constant Nodes
87- * Next we want to define a constant. There are two method to define constants
87+ * Next we want to define a constant. There are two methods to define constants
8888 * explicitly or implicitly.
8989 * @code
9090template<jit::float_scalar T>
9191void run_tutorial() {
9292 auto x = graph::variable(1000, "x");
9393
94- // Define explicit constant.
94+ // Define explicit constant.
9595 auto m = graph::constant<T> (0.4);
96- // Define implicit constant.
96+ // Define implicit constant.
9797 const T b = 0.6;
9898}
9999 @endcode
@@ -110,9 +110,9 @@ template<jit::float_scalar T>
110110void run_tutorial() {
111111 auto x = graph::variable(1000, "x");
112112
113- // Define explicit constant.
113+ // Define explicit constant.
114114 auto m = graph::constant<T> (0.4);
115- // Define implicit constant.
115+ // Define implicit constant.
116116 const T b = 0.6;
117117
118118// Equation of a line
@@ -133,15 +133,15 @@ template<jit::float_scalar T>
133133void run_tutorial() {
134134 auto x = graph::variable(1000, "x");
135135
136- // Define explicit constant.
136+ // Define explicit constant.
137137 auto m = graph::constant<T> (0.4);
138- // Define implicit constant.
138+ // Define implicit constant.
139139 const T b = 0.6;
140140
141- // Equation of a line
141+ // Equation of a line
142142 auto y = m*x + b;
143143
144- // Auto differentiation.
144+ // Auto differentiation.
145145 auto dydx = y->df(x);
146146 dydx->to_latex();
147147 std::cout << std::endl;
@@ -168,18 +168,18 @@ template<jit::float_scalar T>
168168void run_tutorial() {
169169 auto x = graph::variable(3, "x");
170170
171- // Define explicit constant.
171+ // Define explicit constant.
172172 auto m = graph::constant<T> (0.4);
173- // Define implicit constant.
173+ // Define implicit constant.
174174 const T b = 0.6;
175175
176- // Equation of a line
176+ // Equation of a line
177177 auto y = m*x + b;
178178
179- // Auto differentiation.
179+ // Auto differentiation.
180180 auto dydx = y->df(x);
181181
182- // Create a workflow manager.
182+ // Create a workflow manager.
183183 workflow::manager<T> work(0);
184184}
185185 @endcode
@@ -322,13 +322,13 @@ void run_tutorial() {
322322 auto x = graph::variable<T> (3, "x");
323323 x->set({1.0, 2.0, 3.0});
324324
325- // Define an objective function.
325+ // Define an objective function.
326326 auto f = 0.2*x*x*x + 0.6*x*x + 0.4*x + 0.5;
327327
328328// Define a step update.
329329 auto x_new = x - f/f->df(x);
330330
331- // Create a workflow manager.
331+ // Create a workflow manager.
332332 workflow::manager<T> work(0);
333333 work.add_item({
334334 graph::variable_cast(x)
@@ -372,7 +372,7 @@ void run_tutorial() {
372372 * a reduction on the host side and transferring the entire array to the host.
373373 * To improve this we can use a converge item instead.
374374 * @code
375- // Create a workflow manager.
375+ // Create a workflow manager.
376376workflow::manager<T> work(0);
377377work.add_converge_item({
378378 graph::variable_cast(x)
0 commit comments