Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions ngraph_bridge/enable_variable_ops/ngraph_capture_variables.cc
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@ Status CaptureVariables(Graph* graph, std::set<string> skip_these_nodes) {
// If Prefetch is requested
if (std::getenv(NGraphPrefetchSharedResouce::NGRAPH_TF_USE_PREFETCH) !=
nullptr) {
if (make_iterator_nodes.size() == 0) {
// No MakeIterator Op found in the Graph
make_iterator_nodes.clear();
nodes_to_capture.clear();
return Status::OK();
}

if (make_iterator_nodes.size() > 1) {
return errors::Internal(
"Found more than 1 MakeIterator nodes. This case is not supported.");
Expand Down