From fbdc97709006296ec7ab9902b66a1e988a9a16d7 Mon Sep 17 00:00:00 2001 From: "gengchao4@huawei.com" Date: Mon, 11 Jan 2021 10:16:00 +0800 Subject: [PATCH] bugfix for l1 data dump --- ge/graph/load/new_model_manager/davinci_model.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ge/graph/load/new_model_manager/davinci_model.cc b/ge/graph/load/new_model_manager/davinci_model.cc index c531fe13..35844b2d 100755 --- a/ge/graph/load/new_model_manager/davinci_model.cc +++ b/ge/graph/load/new_model_manager/davinci_model.cc @@ -4162,8 +4162,8 @@ Status DavinciModel::InitL1DataDumperArgs() { // send l1fusion dump addr to rts if (rtDumpAddrSet(rt_model_handle_, l1_fusion_addr_, kDumpL1FusionOpMByteSize, kDumpFlagOfL1Fusion) != RT_ERROR_NONE) { + // l1_fusion_addr_ will be free when DavinciModel destruct GELOGE(FAILED, "Call rtDumpAddrSet failed"); - GE_CHK_RT(rtFree(l1_fusion_addr_)); return FAILED; }