Commit c4763cd5 by Pedro Larroy Committed by Tianqi Chen

Minor improve to assertion (#3295)

parent d7bc4fdd
......@@ -107,7 +107,7 @@ IndexedGraph::IndexedGraph(const Graph &g) {
for (const auto& nptr : n->control_deps) {
if (!nptr->is_variable() && is_ghost.get(nptr->op(), false)) continue;
auto it = node2index_.find(nptr.get());
CHECK(it != node2index_.end() && it->first == nptr.get());
CHECK(it != node2index_.end()) << "control dep not found in graph";
control_deps_.push_back(it->second);
}
control_rptr.push_back(control_deps_.size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment