You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2015/10/15 15:25:51 UTC
[4/4] incubator-singa git commit: SINGA-90 Miscellaneous trivial bug
fixes
SINGA-90 Miscellaneous trivial bug fixes
Fix minor typos in error logs.
Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/497dafc7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/497dafc7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/497dafc7
Branch: refs/heads/master
Commit: 497dafc71f4b1d21d143b7cc9a70df11a09449b6
Parents: f2899d5
Author: Yee Fan <ye...@yahoo.com.sg>
Authored: Thu Oct 15 15:30:14 2015 +0800
Committer: Yee Fan <ye...@yahoo.com.sg>
Committed: Thu Oct 15 21:06:59 2015 +0800
----------------------------------------------------------------------
include/singa/neuralnet/layer.h | 8 ++++----
src/utils/cluster_rt.cc | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/497dafc7/include/singa/neuralnet/layer.h
----------------------------------------------------------------------
diff --git a/include/singa/neuralnet/layer.h b/include/singa/neuralnet/layer.h
index 019678f..3f63165 100644
--- a/include/singa/neuralnet/layer.h
+++ b/include/singa/neuralnet/layer.h
@@ -234,11 +234,11 @@ class InputLayer : virtual public Layer {
void ComputeGradient(int flag, const vector<Layer*>& srclayers) override {}
ConnectionType dst_layer_connection() const override { return kOneToMany; }
Blob<float>* mutable_grad(const Layer* layer) override {
- // LOG(FATAL) << "Loss layer has no gradient blob";
+ // LOG(FATAL) << "Input layer has no gradient blob";
return nullptr;
}
const Blob<float>& grad(const Layer* from) const override {
- // LOG(FATAL) << "Loss layer has no gradient blob";
+ // LOG(FATAL) << "Input layer has no gradient blob";
return grad_;
}
};
@@ -279,11 +279,11 @@ class OutputLayer : virtual public Layer {
public:
void ComputeGradient(int flag, const vector<Layer*>& srclayers) override {}
Blob<float>* mutable_grad(const Layer* layer) override {
- LOG(FATAL) << "Loss layer has no gradient blob";
+ LOG(FATAL) << "Output layer has no gradient blob";
return nullptr;
}
const Blob<float>& grad(const Layer* from) const override {
- LOG(FATAL) << "Loss layer has no gradient blob";
+ LOG(FATAL) << "Output layer has no gradient blob";
return grad_;
}
};
http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/497dafc7/src/utils/cluster_rt.cc
----------------------------------------------------------------------
diff --git a/src/utils/cluster_rt.cc b/src/utils/cluster_rt.cc
index 4f8625b..5ac3812 100644
--- a/src/utils/cluster_rt.cc
+++ b/src/utils/cluster_rt.cc
@@ -118,7 +118,7 @@ bool ZKService::CreateNode(const char* path, const char* val, int flag,
<< "please ensure it is running properly...\n"
<< "If want to use zookeeper in our thirdparty folder, "
<< "you can start it by:\n"
- << "$ ./bin/zk-service start";
+ << "$ ./bin/zk-service.sh start";
return false;
}
LOG(FATAL) << "Unhandled ZK error code: " << ret