Repository: incubator-singa
Updated Branches:
  refs/heads/master 595606cb2 -> 497dafc71


SINGA-90 Miscellaneous trivial bug fixes

Initialize "store_" class members in CSVOutputLayer and RecordOutputLayer 
classes to nullptr.


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/b1da6e69
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/b1da6e69
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/b1da6e69

Branch: refs/heads/master
Commit: b1da6e693b8c20ee96d1589fbabe0ba323f5cc46
Parents: 595606c
Author: Yee Fan <[email protected]>
Authored: Wed Oct 14 17:17:20 2015 +0800
Committer: Yee Fan <[email protected]>
Committed: Thu Oct 15 21:06:02 2015 +0800

----------------------------------------------------------------------
 include/singa/neuralnet/output_layer/csv.h    | 2 +-
 include/singa/neuralnet/output_layer/record.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/b1da6e69/include/singa/neuralnet/output_layer/csv.h
----------------------------------------------------------------------
diff --git a/include/singa/neuralnet/output_layer/csv.h 
b/include/singa/neuralnet/output_layer/csv.h
index c43a578..cb1545a 100644
--- a/include/singa/neuralnet/output_layer/csv.h
+++ b/include/singa/neuralnet/output_layer/csv.h
@@ -37,8 +37,8 @@ class CSVOutputLayer : public OutputLayer {
   void ComputeFeature(int flag, const vector<Layer*>& srclayers) override;
 
  private:
+  io::Store* store_ = nullptr;
   int inst_ = 0;
-  io::Store* store_;
 };
 }  // namespace singa
 #endif  // SINGA_NEURALNET_OUTPUT_LAYER_CSV_H_

http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/b1da6e69/include/singa/neuralnet/output_layer/record.h
----------------------------------------------------------------------
diff --git a/include/singa/neuralnet/output_layer/record.h 
b/include/singa/neuralnet/output_layer/record.h
index ae1060e..a2adb0f 100644
--- a/include/singa/neuralnet/output_layer/record.h
+++ b/include/singa/neuralnet/output_layer/record.h
@@ -35,7 +35,7 @@ class RecordOutputLayer : public OutputLayer {
   void ComputeFeature(int flag, const vector<Layer*>& srclayers) override;
 
  private:
-  io::Store* store_;
+  io::Store* store_ = nullptr;
   int inst_ = 0;  //!< instance No.
 };
 }  // namespace singa

Reply via email to