|
|
@@ -3727,6 +3727,8 @@ Status DavinciModel::InitTbeHandle(const OpDescPtr &op_desc) { |
|
|
|
binary.magic = RT_DEV_BINARY_MAGIC_ELF; |
|
|
|
} else if (json_string == "RT_DEV_BINARY_MAGIC_ELF_AIVEC") { |
|
|
|
binary.magic = RT_DEV_BINARY_MAGIC_ELF_AIVEC; |
|
|
|
} else if (json_string == "RT_DEV_BINARY_MAGIC_ELF_AICUBE") { |
|
|
|
binary.magic = RT_DEV_BINARY_MAGIC_ELF_AICUBE; |
|
|
|
} else { |
|
|
|
REPORT_INNER_ERROR("E19999", "Attr:%s value:%s in op:%s(%s), model_id:%u, check invalid", |
|
|
|
TVM_ATTR_NAME_MAGIC.c_str(), json_string.c_str(), |
|
|
@@ -4007,13 +4009,11 @@ Status DavinciModel::NnExecute(rtStream_t stream, bool async_mode, const InputDa |
|
|
|
iterator_count_++; |
|
|
|
} |
|
|
|
|
|
|
|
if (!is_async_mode_) { |
|
|
|
GE_IF_BOOL_EXEC(profiling_model_execute_on, SetProfileTime(MODEL_AFTER_PROC_START)); |
|
|
|
ret = CopyOutputData(input_data.index, output_data, RT_MEMCPY_DEVICE_TO_DEVICE); |
|
|
|
GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(ret != SUCCESS, return ACL_ERROR_GE_INTERNAL_ERROR, |
|
|
|
"[Copy][OutputData] to user failed, ret:%d, model_id:%u.", ret, model_id_); |
|
|
|
GE_IF_BOOL_EXEC(profiling_model_execute_on, SetProfileTime(MODEL_AFTER_PROC_END)); |
|
|
|
} |
|
|
|
GE_IF_BOOL_EXEC(profiling_model_execute_on, SetProfileTime(MODEL_AFTER_PROC_START)); |
|
|
|
ret = CopyOutputData(input_data.index, output_data, RT_MEMCPY_DEVICE_TO_DEVICE); |
|
|
|
GE_CHK_BOOL_TRUE_EXEC_WITH_LOG(ret != SUCCESS, return ACL_ERROR_GE_INTERNAL_ERROR, |
|
|
|
"[Copy][OutputData] to user failed, ret:%d, model_id:%u.", ret, model_id_); |
|
|
|
GE_IF_BOOL_EXEC(profiling_model_execute_on, SetProfileTime(MODEL_AFTER_PROC_END)); |
|
|
|
|
|
|
|
// report model time data |
|
|
|
GE_IF_BOOL_EXEC(profiling_model_execute_on, (void)SinkTimeProfile(input_data)); |
|
|
|