fix typo & NoOp

pull/785/head
chuxing 5 years ago
parent ad00ace6ef
commit 15377e9b97

@ -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());

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