"tools/git@developer.sourcefind.cn:OpenDAS/dlib.git" did not exist on "b9f4da5522a0d824c60636cc0f6f675b8874468f"
Commit ee2a0070 authored by Davis King's avatar Davis King
Browse files

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