From 030f5a0a764fa999a7711f69cfd57e11d4b9c1ef Mon Sep 17 00:00:00 2001 From: Davis King Date: Sun, 27 Mar 2016 10:50:52 -0400 Subject: [PATCH] A bit more cleanup --- examples/dnn_mnist_resnet_ex.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/examples/dnn_mnist_resnet_ex.cpp b/examples/dnn_mnist_resnet_ex.cpp index 719a57a6c..2ebfc21ce 100644 --- a/examples/dnn_mnist_resnet_ex.cpp +++ b/examples/dnn_mnist_resnet_ex.cpp @@ -7,9 +7,10 @@ using namespace std; using namespace dlib; -template using ares = relu>>>>>>>; +// ---------------------------------------------------------------------------------------- template using res = relu>>>>>>>; + std::tuple res_ ( unsigned long outputs, unsigned long stride = 1 @@ -24,7 +25,10 @@ std::tuple res_ ( con_(outputs,3,3,stride,stride)); } - +template using ares = relu>>>>>>>; + +// ---------------------------------------------------------------------------------------- + int main(int argc, char** argv) try { if (argc != 2) @@ -87,6 +91,7 @@ int main(int argc, char** argv) try // You can access sub layers of the network like this: net.subnet().subnet().get_output(); + layer<2>(net).get_output(); layer(net).get_output(); net.clean();