From 9e64e885a97e64004f2dc4fe5e32ff24f9518a2c Mon Sep 17 00:00:00 2001 From: liuchao19891114 Date: Tue, 24 Sep 2024 14:27:09 +0800 Subject: [PATCH] sunset ddk v2 interface --- source/backend/hiai/backend/NPUBackend.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/backend/hiai/backend/NPUBackend.cpp b/source/backend/hiai/backend/NPUBackend.cpp index 46c194c7..c4f96463 100644 --- a/source/backend/hiai/backend/NPUBackend.cpp +++ b/source/backend/hiai/backend/NPUBackend.cpp @@ -211,7 +211,7 @@ namespace MNN { return false; } - uint32_t write_size = (uint32_t)fwrite(om_model_buff.data, 1 , om_model_buff.length, fp); + uint32_t write_size = (uint32_t)fwrite(om_model_buff.data, 1, om_model_buff.length, fp); if (write_size != om_model_buff.length) { fclose(fp); printf("write om file failed !!!"); @@ -434,7 +434,6 @@ namespace MNN { auto index = mInputMap.find((unsigned long)(const_cast(dstTensor))); MNN_ASSERT(index != mInputMap.end()); shared_ptr input = mInputTensors[index->second]; - memcpy(input->GetBuffer(), srcTensor->host(), (size_t)input->GetSize()); } else if(isOutputCopy){ int index;