[caffe] 01/01: d/tests: update the simple test script

Zhou Mo cdluminate-guest at moszumanska.debian.org
Fri Jun 3 10:47:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

cdluminate-guest pushed a commit to branch master
in repository caffe.

commit bc2095b52e4b9dca93ccfe12f62463319e895483
Author: Zhou Mo <cdluminate at gmail.com>
Date:   Fri Jun 3 10:46:39 2016 +0000

    d/tests: update the simple test script
---
 debian/tests/simple | 69 ++++-------------------------------------------------
 1 file changed, 4 insertions(+), 65 deletions(-)

diff --git a/debian/tests/simple b/debian/tests/simple
index c1cacd8..b5824f8 100755
--- a/debian/tests/simple
+++ b/debian/tests/simple
@@ -1,70 +1,9 @@
 #!/bin/sh
 set -e
 
-# create a casual convolutional neural network, deploy version
-tmpfile=$(mktemp)
-cat > $tmpfile << EOF
-name: "Debian_Caffe_Test"
-input: "data"
-input_shape {
-  dim: 64
-  dim: 1
-  dim: 28
-  dim: 28
-}
-layer {
-  name: "conv1"
-  type: "Convolution"
-  bottom: "data"
-  top: "conv1"
-  convolution_param {
-    num_output: 5
-    kernel_size: 3
-    stride: 1
-  }
-}
-layer {
-  name: "pool1"
-  type: "Pooling"
-  bottom: "conv1"
-  top: "pool1"
-  pooling_param {
-    pool: MAX
-    kernel_size: 2
-    stride: 2
-  }
-}
-layer {
-  name: "ip1"
-  type: "InnerProduct"
-  bottom: "pool1"
-  top: "ip1"
-  inner_product_param {
-    num_output: 100
-  }
-}
-layer {
-  name: "relu1"
-  type: "ReLU"
-  bottom: "ip1"
-  top: "ip1"
-}
-layer {
-  name: "ip2"
-  type: "InnerProduct"
-  bottom: "ip1"
-  top: "ip2"
-  inner_product_param {
-    num_output: 10
-  }
-}
-layer {
-  name: "prob"
-  type: "Softmax"
-  bottom: "ip2"
-  top: "prob"
-}
-EOF
+# using the deploy version of lenet for a benchmark test, which requires
+# no MNIST dataset.
+model=examples/mnist/lenet.prototxt
 
 # launch a caffe benchmark on the above network
-caffe time -model $tmpfile -iterations 50
+caffe time -model $model -iterations 50

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/caffe.git



More information about the debian-science-commits mailing list