@@ -212,7 +212,7 @@ Status NodeDoneCallback::DumpDynamicNode() { | |||||
std::string dynamic_model_name = model->GetModelName(); | std::string dynamic_model_name = model->GetModelName(); | ||||
std::string dynamic_om_name = model->GetOmName(); | std::string dynamic_om_name = model->GetOmName(); | ||||
uint32_t model_id = model->GetModelId(); | uint32_t model_id = model->GetModelId(); | ||||
if(!context_->GetDumpProperties().IsLayerNeedDump(dynamic_model_name, dynamic_om_name, op_desc->GetName())) { | |||||
if (!context_->GetDumpProperties().IsLayerNeedDump(dynamic_model_name, dynamic_om_name, op_desc->GetName())) { | |||||
GELOGI("[%s] is not in dump list, no need dump", op_desc->GetName().c_str()); | GELOGI("[%s] is not in dump list, no need dump", op_desc->GetName().c_str()); | ||||
return SUCCESS; | return SUCCESS; | ||||
} | } | ||||
@@ -127,7 +127,7 @@ void SingleOpModel::ParseOpModelParams(ModelHelper &model_helper, SingleOpModelP | |||||
ret = ge::AttrUtils::GetInt(model, ATTR_MODEL_CORE_TYPE, value); | ret = ge::AttrUtils::GetInt(model, ATTR_MODEL_CORE_TYPE, value); | ||||
param.core_type = ret ? value : 0; | param.core_type = ret ? value : 0; | ||||
GELOGI("ParseOpModelParams(), total_memory_size:%lu, zero_copy_size:%lu, weight_size:%lu. core_type = %lu", | |||||
GELOGI("ParseOpModelParams(), total_memory_size:%lu, zero_copy_size:%lu, weight_size:%lu, core_type = %lu", | |||||
param.memory_size, param.zero_copy_mem_size, param.weight_size, param.core_type); | param.memory_size, param.zero_copy_mem_size, param.weight_size, param.core_type); | ||||
} | } | ||||
@@ -454,7 +454,7 @@ Status SingleOpModel::BuildModelTaskKernel(const TaskDef &task_def, DynamicSingl | |||||
auto kernel_type = static_cast<ccKernelType>(context.kernel_type()); | auto kernel_type = static_cast<ccKernelType>(context.kernel_type()); | ||||
if (kernel_type == ccKernelType::TE) { | if (kernel_type == ccKernelType::TE) { | ||||
GELOGD("Building TBE task"); | |||||
GELOGD("Building TBE task."); | |||||
TbeOpTask *tbe_task = nullptr; | TbeOpTask *tbe_task = nullptr; | ||||
GE_CHK_STATUS_RET_NOLOG(BuildKernelTask(task_def, &tbe_task)); | GE_CHK_STATUS_RET_NOLOG(BuildKernelTask(task_def, &tbe_task)); | ||||
tbe_task->SetModelArgs(model_name_, model_id_); | tbe_task->SetModelArgs(model_name_, model_id_); | ||||
@@ -482,7 +482,7 @@ Status SingleOpModel::BuildTaskListForDynamicOp(DynamicSingleOp &single_op) { | |||||
auto tasks = ge_model->GetModelTaskDefPtr()->task(); | auto tasks = ge_model->GetModelTaskDefPtr()->task(); | ||||
for (int i = 0; i < tasks.size(); ++i) { | for (int i = 0; i < tasks.size(); ++i) { | ||||
const TaskDef &task_def = tasks[i]; | const TaskDef &task_def = tasks[i]; | ||||
GELOGI("[%s] Task[%d], type = %u, DebugString = %s", model_name_.c_str(), i, task_def.type(), | |||||
GELOGI("[%s] Task[%d], type = [%u], DebugString = [%s]", model_name_.c_str(), i, task_def.type(), | |||||
task_def.DebugString().c_str()); | task_def.DebugString().c_str()); | ||||
auto task_type = static_cast<rtModelTaskType_t>(task_def.type()); | auto task_type = static_cast<rtModelTaskType_t>(task_def.type()); | ||||
if (task_type == RT_MODEL_TASK_KERNEL || task_type == RT_MODEL_TASK_ALL_KERNEL) { | if (task_type == RT_MODEL_TASK_KERNEL || task_type == RT_MODEL_TASK_ALL_KERNEL) { | ||||
@@ -121,7 +121,7 @@ Status OpTask::GetProfilingArgs(TaskDescInfo &task_desc_info, uint32_t &model_id | |||||
} | } | ||||
GE_CHECK_NOTNULL(op_desc_); | GE_CHECK_NOTNULL(op_desc_); | ||||
string op_name = op_desc_->GetName(); | string op_name = op_desc_->GetName(); | ||||
GELOGD("Get profiling args of op [%s] end, task_id[%u], stream_id[%u]", op_name.c_str(), task_id, stream_id); | |||||
GELOGD("Get profiling args of op [%s] end, task_id[%u], stream_id[%u].", op_name.c_str(), task_id, stream_id); | |||||
model_id = model_id_; | model_id = model_id_; | ||||
task_desc_info.model_name = model_name_; | task_desc_info.model_name = model_name_; | ||||
task_desc_info.block_dim = block_dim_; | task_desc_info.block_dim = block_dim_; | ||||
@@ -463,6 +463,10 @@ Status AiCpuBaseTask::UpdateExtInfo(const std::vector<GeTensorDesc> &input_desc, | |||||
input_desc.size(), non_const_index); | input_desc.size(), non_const_index); | ||||
GE_CHK_STATUS_RET(aicpu_ext_handle_->UpdateInputShapeAndType(input_index, input_desc[non_const_index]), | GE_CHK_STATUS_RET(aicpu_ext_handle_->UpdateInputShapeAndType(input_index, input_desc[non_const_index]), | ||||
"Input[%zu] update input shape failed.", input_index); | "Input[%zu] update input shape failed.", input_index); | ||||
if (DumpManager::GetInstance().GetDumpProperties(kInferSessionId).IsSingleOpNeedDump()) { | |||||
GE_CHK_STATUS_RET(op_desc_->UpdateInputDesc(input_index,input_desc[non_const_index]), | |||||
"AicpuTask Update [%zu]th input desc failed",input_index); | |||||
} | |||||
non_const_index++; | non_const_index++; | ||||
} | } | ||||
@@ -470,6 +474,10 @@ Status AiCpuBaseTask::UpdateExtInfo(const std::vector<GeTensorDesc> &input_desc, | |||||
for (size_t j = 0; j < num_outputs_; ++j) { | for (size_t j = 0; j < num_outputs_; ++j) { | ||||
GE_CHK_STATUS_RET(aicpu_ext_handle_->UpdateOutputShapeAndType(j, output_desc[j]), | GE_CHK_STATUS_RET(aicpu_ext_handle_->UpdateOutputShapeAndType(j, output_desc[j]), | ||||
"Output[%zu] UpdateOutputShapeAndType failed.", j); | "Output[%zu] UpdateOutputShapeAndType failed.", j); | ||||
if (DumpManager::GetInstance().GetDumpProperties(kInferSessionId).IsSingleOpNeedDump()) { | |||||
GE_CHK_STATUS_RET(op_desc_->UpdateOutputDesc(j,output_desc[j]), | |||||
"AicpuTask Update [%zu]th output desc failed",j); | |||||
} | |||||
} | } | ||||
} | } | ||||