Skip to content

Commit

Permalink
fix log bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghan1992 committed Aug 15, 2018
1 parent fc2f10d commit b5320dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dict/tf_model_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ int TFModelAdapter::load(const std::string& path, const DictConfig& config) {
std::string dict_path = path + "/term2id";
int ret = hash_load(dict_path.c_str(), p_tf_pack->term2id);
if (ret != 0) {
FATAL_LOG("lego term2id dict load error");
FATAL_LOG("term2id dict load error");
return -1;
}
// tf训练之后将graph 和weights合并到一个文件
Expand All @@ -37,7 +37,7 @@ int TFModelAdapter::load(const std::string& path, const DictConfig& config) {
model_path,
&p_tf_pack->graphdef);
if (!status_load.ok()) {
FATAL_LOG("lego tensorflow model error");
FATAL_LOG("load tensorflow model error");
return -1;
}
TRACE_LOG("tf model load success");
Expand Down

0 comments on commit b5320dc

Please sign in to comment.