Commit ee2a0070 authored by Davis King's avatar Davis King

Added comment to show how to deserialize a network.

parent ba0f7c5c
...@@ -117,6 +117,8 @@ int main(int argc, char** argv) try ...@@ -117,6 +117,8 @@ int main(int argc, char** argv) try
// "cleaning" the network before saving it. // "cleaning" the network before saving it.
net.clean(); net.clean();
serialize("mnist_network.dat") << net; serialize("mnist_network.dat") << net;
// Now if we later wanted to recall the network from disk we can simply say:
// deserialize("mnist_network.dat") >> net;
// Now let's run the training images through the network. This statement runs all the // Now let's run the training images through the network. This statement runs all the
......
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