diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/caffe/net.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/caffe/net.hpp b/include/caffe/net.hpp index 1c2a1912..0addb3c2 100644 --- a/include/caffe/net.hpp +++ b/include/caffe/net.hpp @@ -36,6 +36,12 @@ class Net { * */ const vector<Blob<Dtype>*>& Forward(Dtype* loss = NULL); + /// @brief DEPRECATED; use Forward() instead. + const vector<Blob<Dtype>*>& ForwardPrefilled(Dtype* loss = NULL) { + LOG_EVERY_N(WARNING, 1000) << "DEPRECATED: ForwardPrefilled() " + << "will be removed in a future version. Use Forward()."; + return Forward(loss); + } /** * The From and To variants of Forward and Backward operate on the @@ -48,6 +54,9 @@ class Net { Dtype ForwardFromTo(int start, int end); Dtype ForwardFrom(int start); Dtype ForwardTo(int end); + /// @brief DEPRECATED; set input blobs then use Forward() instead. + const vector<Blob<Dtype>*>& Forward(const vector<Blob<Dtype>* > & bottom, + Dtype* loss = NULL); /** * @brief Zeroes out the diffs of all net parameters. |