Change GatherLayer's constructor of cpu to initialize members (#9315)
author장지섭/On-Device Lab(SR)/Engineer/삼성전자 <jiseob.jang@samsung.com>
Mon, 2 Dec 2019 03:58:09 +0000 (12:58 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Mon, 2 Dec 2019 03:58:09 +0000 (12:58 +0900)
This commit changes GatherLayer's constructor of cpu to initialize members

Signed-off-by: jiseob.jang <jiseob.jang@samsung.com>
runtime/neurun/backend/cpu/kernel/GatherLayer.h

index 21aad73..af4f8b8 100644 (file)
@@ -33,7 +33,12 @@ namespace kernel
 class GatherLayer : public ::neurun::exec::IFunction
 {
 public:
-  GatherLayer() = default;
+  GatherLayer()
+      : _inputData{nullptr}, _indicesData{nullptr}, _outputData{nullptr}, _axis{-1},
+        _inputType{OperandType::FLOAT32}
+  {
+    // DO NOTHING
+  }
 
 public:
   void configure(uint8_t *inputData, const TensorDescriptor &inputDescr, uint8_t *indicesData,