diff options
Diffstat (limited to 'tensorflow/core/grappler/utils.cc')
-rw-r--r-- | tensorflow/core/grappler/utils.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/core/grappler/utils.cc b/tensorflow/core/grappler/utils.cc index 11bd8fa5cb..54be02b5f8 100644 --- a/tensorflow/core/grappler/utils.cc +++ b/tensorflow/core/grappler/utils.cc @@ -45,6 +45,7 @@ NodeDef* NodeMap::GetNode(const string& name) const { string node_name = NodeName(name); auto it = nodes_.find(node_name); if (it == nodes_.end()) { + LOG(WARNING) << "Node " << node_name << " is not in the graph."; return nullptr; } return it->second; @@ -61,7 +62,7 @@ const std::set<NodeDef*>& NodeMap::GetOutputs(const string& node_name) const { void NodeMap::AddNode(const string& name, NodeDef* node) { auto ret = nodes_.insert(std::make_pair(name, node)); CHECK(ret.second) << "Pair (" << name << "," << node - << ") is not inserted because a same key already exists."; + << ") is not inserted because the same key already exists."; } void NodeMap::AddOutput(const string& node_name, const string& output_name) { |