From: Jeff Donahue Date: Fri, 14 Mar 2014 00:54:10 +0000 (-0700) Subject: fix net_speed_benchmark so 'make all' works X-Git-Tag: submit/tizen/20180823.020014~692^2~85^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aee5f54661f3f4678db101cef76aa5ca9b2930bc;p=platform%2Fupstream%2Fcaffeonacl.git fix net_speed_benchmark so 'make all' works --- diff --git a/tools/net_speed_benchmark.cpp b/tools/net_speed_benchmark.cpp index 96d40a2..43f7b49 100644 --- a/tools/net_speed_benchmark.cpp +++ b/tools/net_speed_benchmark.cpp @@ -58,9 +58,11 @@ int main(int argc, char** argv) { LOG(ERROR) << "Performing Forward"; // Note that for the speed benchmark, we will assume that the network does // not take any input blobs. - caffe_net.Forward(vector*>()); + float initial_loss; + caffe_net.Forward(vector*>(), &initial_loss); + LOG(ERROR) << "Initial loss: " << initial_loss; LOG(ERROR) << "Performing Backward"; - LOG(ERROR) << "Initial loss: " << caffe_net.Backward(); + caffe_net.Backward(); const vector > >& layers = caffe_net.layers(); vector*> >& bottom_vecs = caffe_net.bottom_vecs();