From 15377e9b9709a4ed87e71848ebbb4cc2ab23812a Mon Sep 17 00:00:00 2001 From: chuxing Date: Tue, 29 Dec 2020 09:45:41 +0800 Subject: [PATCH] fix typo & NoOp --- ge/hybrid/model/hybrid_model_builder.cc | 2 +- ge/hybrid/node_executor/node_executor.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ge/hybrid/model/hybrid_model_builder.cc b/ge/hybrid/model/hybrid_model_builder.cc index 58f4723d..58c028c4 100755 --- a/ge/hybrid/model/hybrid_model_builder.cc +++ b/ge/hybrid/model/hybrid_model_builder.cc @@ -932,7 +932,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(v_weights[0].get()); diff --git a/ge/hybrid/node_executor/node_executor.cc b/ge/hybrid/node_executor/node_executor.cc index e7cdd7c9..336b0044 100755 --- a/ge/hybrid/node_executor/node_executor.cc +++ b/ge/hybrid/node_executor/node_executor.cc @@ -243,8 +243,8 @@ Status NoOpTask::UpdateArgs(TaskContext &context) { return SUCCESS; } Status NoOpTask::ExecuteAsync(TaskContext &context, std::function 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