Browse Source

!785 Fixing log text and NoOp callback

From: @xchu42
Reviewed-by: @ji_chen,@wqtshg
Signed-off-by: @ji_chen
tags/v1.2.0
mindspore-ci-bot Gitee 3 years ago
parent
commit
ca0f3de34d
2 changed files with 3 additions and 3 deletions
  1. +1
    -1
      ge/hybrid/model/hybrid_model_builder.cc
  2. +2
    -2
      ge/hybrid/node_executor/node_executor.cc

+ 1
- 1
ge/hybrid/model/hybrid_model_builder.cc View File

@@ -933,7 +933,7 @@ Status HybridModelBuilder::InitWeights() {
auto op_desc = constant_node->GetOpDesc();
auto v_weights = ModelUtils::GetWeights(op_desc);
if (v_weights.empty()) {
GELOGE(INTERNAL_ERROR, "[%s] Constant no not have value", constant_node->GetName().c_str());
GELOGE(INTERNAL_ERROR, "[%s] Constant has no value", constant_node->GetName().c_str());
return INTERNAL_ERROR;
}
auto *ge_tensor = const_cast<GeTensor *>(v_weights[0].get());


+ 2
- 2
ge/hybrid/node_executor/node_executor.cc View File

@@ -243,8 +243,8 @@ Status NoOpTask::UpdateArgs(TaskContext &context) {
return SUCCESS;
}
Status NoOpTask::ExecuteAsync(TaskContext &context, std::function<void()> done_callback) {
GELOGD("[%s] Skipping execute for op with empty outputs", context.GetNodeName());
return SUCCESS;
GELOGD("[%s] Skipping execution for op with empty outputs", context.GetNodeName());
return context.TryExecuteCallback((done_callback));
}
} // namespace hybrid
} // namespace ge

Loading…
Cancel
Save