summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorEvan Shelhamer <shelhamer@imaginarynumber.net>2016-02-29 21:13:27 -0800
committerEvan Shelhamer <shelhamer@imaginarynumber.net>2016-02-29 21:22:15 -0800
commit01d5a9e0afdbdf1e93f343bc5656ad1ec53c1673 (patch)
treed6bfe8acdb35fb7aaa02744db7876c9d17ff4313 /tools
parente5315fe702bf8bacc8778fab0dd25344fdd76e07 (diff)
downloadcaffeonacl-01d5a9e0afdbdf1e93f343bc5656ad1ec53c1673.tar.gz
caffeonacl-01d5a9e0afdbdf1e93f343bc5656ad1ec53c1673.tar.bz2
caffeonacl-01d5a9e0afdbdf1e93f343bc5656ad1ec53c1673.zip
output all logging from upgrade net tools
output info, warnings, and errors for fuller description of the upgrade
Diffstat (limited to 'tools')
-rw-r--r--tools/upgrade_net_proto_binary.cpp5
-rw-r--r--tools/upgrade_net_proto_text.cpp3
-rw-r--r--tools/upgrade_solver_proto_text.cpp3
3 files changed, 7 insertions, 4 deletions
diff --git a/tools/upgrade_net_proto_binary.cpp b/tools/upgrade_net_proto_binary.cpp
index 8a0dd7af..ede07ecc 100644
--- a/tools/upgrade_net_proto_binary.cpp
+++ b/tools/upgrade_net_proto_binary.cpp
@@ -16,6 +16,7 @@ using std::ofstream;
using namespace caffe; // NOLINT(build/namespaces)
int main(int argc, char** argv) {
+ FLAGS_alsologtostderr = 1; // Print output to stderr (while still logging)
::google::InitGoogleLogging(argv[0]);
if (argc != 3) {
LOG(ERROR) << "Usage: "
@@ -39,11 +40,11 @@ int main(int argc, char** argv) {
<< "see details above.";
}
} else {
- LOG(ERROR) << "File already in V1 proto format: " << argv[1];
+ LOG(ERROR) << "File already in latest proto format: " << input_filename;
}
WriteProtoToBinaryFile(net_param, argv[2]);
- LOG(ERROR) << "Wrote upgraded NetParameter binary proto to " << argv[2];
+ LOG(INFO) << "Wrote upgraded NetParameter binary proto to " << argv[2];
return !success;
}
diff --git a/tools/upgrade_net_proto_text.cpp b/tools/upgrade_net_proto_text.cpp
index 9200431b..d8e84d6d 100644
--- a/tools/upgrade_net_proto_text.cpp
+++ b/tools/upgrade_net_proto_text.cpp
@@ -16,6 +16,7 @@ using std::ofstream;
using namespace caffe; // NOLINT(build/namespaces)
int main(int argc, char** argv) {
+ FLAGS_alsologtostderr = 1; // Print output to stderr (while still logging)
::google::InitGoogleLogging(argv[0]);
if (argc != 3) {
LOG(ERROR) << "Usage: "
@@ -50,6 +51,6 @@ int main(int argc, char** argv) {
// Save new format prototxt.
WriteProtoToTextFile(net_param, argv[2]);
- LOG(ERROR) << "Wrote upgraded NetParameter text proto to " << argv[2];
+ LOG(INFO) << "Wrote upgraded NetParameter text proto to " << argv[2];
return !success;
}
diff --git a/tools/upgrade_solver_proto_text.cpp b/tools/upgrade_solver_proto_text.cpp
index 7130232a..ddff1ce6 100644
--- a/tools/upgrade_solver_proto_text.cpp
+++ b/tools/upgrade_solver_proto_text.cpp
@@ -16,6 +16,7 @@ using std::ofstream;
using namespace caffe; // NOLINT(build/namespaces)
int main(int argc, char** argv) {
+ FLAGS_alsologtostderr = 1; // Print output to stderr (while still logging)
::google::InitGoogleLogging(argv[0]);
if (argc != 3) {
LOG(ERROR) << "Usage: upgrade_solver_proto_text "
@@ -45,6 +46,6 @@ int main(int argc, char** argv) {
// Save new format prototxt.
WriteProtoToTextFile(solver_param, argv[2]);
- LOG(ERROR) << "Wrote upgraded SolverParameter text proto to " << argv[2];
+ LOG(INFO) << "Wrote upgraded SolverParameter text proto to " << argv[2];
return !success;
}