diff --git a/tensorflow/core/grappler/costs/virtual_scheduler.cc b/tensorflow/core/grappler/costs/virtual_scheduler.cc index 2bc4c11d6882a1..ea5fead4b9c9a0 100644 --- a/tensorflow/core/grappler/costs/virtual_scheduler.cc +++ b/tensorflow/core/grappler/costs/virtual_scheduler.cc @@ -229,8 +229,9 @@ Status VirtualScheduler::Init() { return Status(error::UNAVAILABLE, "No ready nodes in the graph."); } - CHECK(feed_nodes.empty()) << "Some feed nodes were not found in the graph: " - << str_util::Join(feed_nodes, ","); + if (!feed_nodes.empty()) + LOG(ERROR) << "Some feed nodes were not found in the graph: " + << str_util::Join(feed_nodes, ","); initialized_ = true; return Status::OK();