Browse Source

fix typo & NoOp

tags/v1.2.0
chuxing 3 years ago
parent
commit
15377e9b97
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

@@ -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<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