sunset ddk v2 interface

This commit is contained in:
liuchao19891114 2024-09-24 14:27:09 +08:00
parent aed41a82de
commit 9e64e885a9
1 changed files with 1 additions and 2 deletions

View File

@ -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<Tensor*>(dstTensor)));
MNN_ASSERT(index != mInputMap.end());
shared_ptr<hiai::AiTensor> input = mInputTensors[index->second];
memcpy(input->GetBuffer(), srcTensor->host<void>(), (size_t)input->GetSize());
} else if(isOutputCopy){
int index;