From: 장지섭/On-Device Lab(SR)/Engineer/삼성전자 Date: Mon, 2 Dec 2019 03:58:09 +0000 (+0900) Subject: Change GatherLayer's constructor of cpu to initialize members (#9315) X-Git-Tag: submit/tizen/20191205.083104~57 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9231a548d2ce8f22154b948f310028e105223dc7;p=platform%2Fcore%2Fml%2Fnnfw.git Change GatherLayer's constructor of cpu to initialize members (#9315) This commit changes GatherLayer's constructor of cpu to initialize members Signed-off-by: jiseob.jang --- diff --git a/runtime/neurun/backend/cpu/kernel/GatherLayer.h b/runtime/neurun/backend/cpu/kernel/GatherLayer.h index 21aad73..af4f8b8 100644 --- a/runtime/neurun/backend/cpu/kernel/GatherLayer.h +++ b/runtime/neurun/backend/cpu/kernel/GatherLayer.h @@ -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,