Browse Source

fix static checking problems of lite ops

tags/v1.1.0
liuwenhao4 5 years ago
parent
commit
d61c5587b8
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h

+ 4
- 4
mindspore/lite/src/runtime/kernel/arm/fp32/l2_norm_fp32.h View File

@@ -51,14 +51,14 @@ class L2NormCPUKernel : public LiteKernel {
int Run() override; int Run() override;


protected: protected:
L2NormParameter *l2_norm_param_;
L2NormParameter *l2_norm_param_ = nullptr;


private: private:
int MallocTmpBuffer(); int MallocTmpBuffer();
void FreeTmpBuffer(); void FreeTmpBuffer();
float sqrt_sum_;
float *input_ptr_;
float *output_ptr_;
float sqrt_sum_ = 0;
float *input_ptr_ = nullptr;
float *output_ptr_ = nullptr;
float *tmp_sum_ = nullptr; float *tmp_sum_ = nullptr;
}; };
} // namespace mindspore::kernel } // namespace mindspore::kernel


Loading…
Cancel
Save