forked from solrex/caffe-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add synced_version file, re-diff HEAD to synced_version.
- Loading branch information
Showing
19 changed files
with
400 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,45 @@ | ||
--- caffe/include/caffe/net.hpp 2017-01-31 23:29:02.000000000 +0800 | ||
+++ ../include/caffe/net.hpp 2017-01-30 15:43:29.000000000 +0800 | ||
--- caffe/include/caffe/net.hpp 2017-01-27 09:51:55.678623300 +0800 | ||
+++ ../include/caffe/net.hpp 2017-02-04 22:35:34.598149613 +0800 | ||
@@ -38,8 +38,10 @@ | ||
const vector<Blob<Dtype>*>& Forward(Dtype* loss = NULL); | ||
/// @brief DEPRECATED; use Forward() instead. | ||
const vector<Blob<Dtype>*>& ForwardPrefilled(Dtype* loss = NULL) { | ||
+#ifndef DISABLE_GLOG | ||
+#ifdef USE_GLOG | ||
LOG_EVERY_N(WARNING, 1000) << "DEPRECATED: ForwardPrefilled() " | ||
<< "will be removed in a future version. Use Forward()."; | ||
+#endif | ||
return Forward(loss); | ||
} | ||
|
||
@@ -64,6 +66,7 @@ | ||
*/ | ||
void ClearParamDiffs(); | ||
|
||
+#ifdef ENABLE_BACKWARD | ||
/** | ||
* The network backward should take no input and output, since it solely | ||
* computes the gradient w.r.t the parameters, and the data has already been | ||
@@ -73,6 +76,7 @@ | ||
void BackwardFromTo(int start, int end); | ||
void BackwardFrom(int start); | ||
void BackwardTo(int end); | ||
+#endif | ||
|
||
/** | ||
* @brief Reshape all layers from bottom to top. | ||
@@ -82,6 +86,7 @@ | ||
*/ | ||
void Reshape(); | ||
|
||
+#ifdef ENABLE_BACKWARD | ||
Dtype ForwardBackward() { | ||
Dtype loss; | ||
Forward(&loss); | ||
@@ -91,6 +96,7 @@ | ||
|
||
/// @brief Updates the network weights based on the diff values computed. | ||
void Update(); | ||
+#endif | ||
/** | ||
* @brief Shares weight data of owner blobs with shared blobs. | ||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.