Skip to content

Commit

Permalink
Return the original graph is optimization is not applied.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 1585830
  • Loading branch information
Yao Zhang authored and tensorflower-gardener committed Jun 10, 2017
1 parent f77cd10 commit ef8b5fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tensorflow/core/grappler/optimizers/layout_optimizer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1170,6 +1170,7 @@ Status LayoutOptimizer::Optimize(Cluster* cluster, const GrapplerItem& item,
}
if (num_gpus_ < 1) {
// LayoutOptimizer is currently only tuned for GPU.
*output = item.graph;
return Status::OK();
}

Expand Down

0 comments on commit ef8b5fd

Please sign in to comment.