From d4efa695cdfba5e3119559151a4217e1a0359c3a Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Tue, 12 Sep 2017 10:38:03 -0700 Subject: [PATCH] Relax the feed_nodes collection check, which triggers a false positive in some modes where the feed node collection is auto-generated. Keep it as a warning to help correct user-provided feed node lists. PiperOrigin-RevId: 168396408 --- tensorflow/core/grappler/costs/virtual_scheduler.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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();