Commit b7de39b4 authored by Scott Cyphers's avatar Scott Cyphers

Missed saving examples

parent fdf451a9
...@@ -32,7 +32,7 @@ int main() ...@@ -32,7 +32,7 @@ int main()
auto t1 = std::make_shared<op::Multiply>(t0, c); auto t1 = std::make_shared<op::Multiply>(t0, c);
// Make the function // Make the function
auto f = std::make_shared<Function>(NodeVector{t1}, auto f = std::make_shared<Function>(OutputVector{t1},
ParameterVector{a, b, c}); ParameterVector{a, b, c});
// Create the backend // Create the backend
......
...@@ -31,7 +31,7 @@ int main() ...@@ -31,7 +31,7 @@ int main()
auto t1 = (a + b) * c; auto t1 = (a + b) * c;
// Make the function // Make the function
auto f = std::make_shared<Function>(NodeVector{t1}, auto f = std::make_shared<Function>(OutputVector{t1},
ParameterVector{a, b, c}); ParameterVector{a, b, c});
// Get the backend // Get the backend
......
...@@ -231,7 +231,7 @@ int main(int argc, char* argv[]) ...@@ -231,7 +231,7 @@ int main(int argc, char* argv[])
NodeMap train_node_map; NodeMap train_node_map;
auto train_function = clone_function( auto train_function = clone_function(
Function( Function(
NodeVector{loss, softmax, W0_next, b0_next, W1_next, b1_next}, OutputVector{loss, softmax, W0_next, b0_next, W1_next, b1_next},
ParameterVector{X, Y, N, learning_rate, W0, b0, W1, b1}), ParameterVector{X, Y, N, learning_rate, W0, b0, W1, b1}),
train_node_map); train_node_map);
auto train_exec = backend->compile(train_function); auto train_exec = backend->compile(train_function);
...@@ -240,7 +240,7 @@ int main(int argc, char* argv[]) ...@@ -240,7 +240,7 @@ int main(int argc, char* argv[])
// X, W0, b0, W1, b1 -> softmax // X, W0, b0, W1, b1 -> softmax
NodeMap inference_node_map; NodeMap inference_node_map;
auto inference_function = clone_function( auto inference_function = clone_function(
Function(NodeVector{softmax}, ParameterVector{X, W0, b0, W1, b1}), Function(OutputVector{softmax}, ParameterVector{X, W0, b0, W1, b1}),
inference_node_map); inference_node_map);
auto inference_exec = backend->compile(inference_function); auto inference_exec = backend->compile(inference_function);
......
...@@ -218,7 +218,7 @@ int main(int argc, const char* argv[]) ...@@ -218,7 +218,7 @@ int main(int argc, const char* argv[])
NodeMap train_node_map; NodeMap train_node_map;
auto train_function = clone_function( auto train_function = clone_function(
Function( Function(
NodeVector{loss, softmax, W0_next, b0_next, W1_next, b1_next}, OutputVector{loss, softmax, W0_next, b0_next, W1_next, b1_next},
ParameterVector{X, Y, N, learning_rate, W0, b0, W1, b1}), ParameterVector{X, Y, N, learning_rate, W0, b0, W1, b1}),
train_node_map); train_node_map);
auto train_exec = backend->compile(train_function); auto train_exec = backend->compile(train_function);
...@@ -227,7 +227,7 @@ int main(int argc, const char* argv[]) ...@@ -227,7 +227,7 @@ int main(int argc, const char* argv[])
// X, W0, b0, W1, b1 -> softmax // X, W0, b0, W1, b1 -> softmax
NodeMap inference_node_map; NodeMap inference_node_map;
auto inference_function = clone_function( auto inference_function = clone_function(
Function(NodeVector{softmax}, ParameterVector{X, W0, b0, W1, b1}), Function(OutputVector{softmax}, ParameterVector{X, W0, b0, W1, b1}),
inference_node_map); inference_node_map);
auto inference_exe = backend->compile(inference_function); auto inference_exe = backend->compile(inference_function);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment