From a723be04acf250a08b5a6f0fbb7e3fde7de429be Mon Sep 17 00:00:00 2001 From: Sergio Date: Sat, 18 Oct 2014 07:59:53 -0700 Subject: [PATCH] Remove TIMING from ForwardBackward --- include/caffe/net.hpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/include/caffe/net.hpp b/include/caffe/net.hpp index 879f474..1d06dc4 100644 --- a/include/caffe/net.hpp +++ b/include/caffe/net.hpp @@ -11,9 +11,6 @@ #include "caffe/common.hpp" #include "caffe/layer.hpp" #include "caffe/proto/caffe.pb.h" -#ifdef TIMING -#include "caffe/util/benchmark.hpp" -#endif namespace caffe { @@ -79,16 +76,9 @@ class Net { void Reshape(); Dtype ForwardBackward(const vector* > & bottom) { - #ifdef TIMING - Timer timer; - timer.Start(); - #endif Dtype loss; Forward(bottom, &loss); Backward(); - #ifdef TIMING - LOG(INFO) << "ForwardBackward Time: " << timer.MilliSeconds() << "ms."; - #endif return loss; } -- 2.7.4