Browse Source

!7907 [MSLITE][Develop] fix fp16 memory leak

Merge pull request !7907 from sunsuodong/fix_memory_leak
tags/v1.1.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
9a31f6b369
1 changed files with 0 additions and 6 deletions
  1. +0
    -6
      mindspore/lite/src/runtime/kernel/arm/fp16/activation_fp16.cc

+ 0
- 6
mindspore/lite/src/runtime/kernel/arm/fp16/activation_fp16.cc View File

@@ -104,12 +104,6 @@ int ActivationFp16Run(void *cdata, int task_id) {

int ActivationFp16CPUKernel::Run() {
auto ret = MallocTmpBuffer();
if (ret != RET_OK) {
MS_LOG(ERROR) << "MallocTmpBuffer failed.";
return ret;
}

ret = MallocTmpBuffer();
if (ret != RET_OK) {
FreeTmpBuffer();
return ret;


Loading…
Cancel
Save