Skip to content

Commit

Permalink
Relax the feed_nodes collection check, which triggers a false positiv…
Browse files Browse the repository at this point in the history
…e 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
  • Loading branch information
tensorflower-gardener committed Sep 12, 2017
1 parent e6b0117 commit d4efa69
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tensorflow/core/grappler/costs/virtual_scheduler.cc
Expand Up @@ -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();
Expand Down

0 comments on commit d4efa69

Please sign in to comment.