diff options
author | Jonathan L Long <jonlong@cs.berkeley.edu> | 2015-03-19 21:28:36 -0700 |
---|---|---|
committer | Jonathan L Long <jonlong@cs.berkeley.edu> | 2015-03-19 21:30:22 -0700 |
commit | f61c374983f4d49f81e6dc2f7588ace5c00c7b36 (patch) | |
tree | 55d351a8283a6f96314ab51a5fd919cf8376414a /tools | |
parent | d02bb2ca93f9e6fc1c25d9a337ca1eb07302fc51 (diff) | |
download | caffeonacl-f61c374983f4d49f81e6dc2f7588ace5c00c7b36.tar.gz caffeonacl-f61c374983f4d49f81e6dc2f7588ace5c00c7b36.tar.bz2 caffeonacl-f61c374983f4d49f81e6dc2f7588ace5c00c7b36.zip |
always call Layer::Reshape in Layer::Forward
There are no cases where Forward is called without Reshape, so we can
simplify the call structure.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/caffe.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/caffe.cpp b/tools/caffe.cpp index eb9e97f5..70b15f89 100644 --- a/tools/caffe.cpp +++ b/tools/caffe.cpp @@ -252,9 +252,6 @@ int time() { forward_timer.Start(); for (int i = 0; i < layers.size(); ++i) { timer.Start(); - // Although Reshape should be essentially free, we include it here - // so that we will notice Reshape performance bugs. - layers[i]->Reshape(bottom_vecs[i], top_vecs[i]); layers[i]->Forward(bottom_vecs[i], top_vecs[i]); forward_time_per_layer[i] += timer.MicroSeconds(); } |