From 4e6d0fa3969f93415175b1bf85a0068da9210c45 Mon Sep 17 00:00:00 2001 From: Gunhan Gulsoy Date: Mon, 2 Apr 2018 23:44:24 -0700 Subject: [PATCH] Automated g4 rollback of changelist 191385909 PiperOrigin-RevId: 191401933 --- tensorflow/core/grappler/optimizers/function_optimizer.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tensorflow/core/grappler/optimizers/function_optimizer.cc b/tensorflow/core/grappler/optimizers/function_optimizer.cc index 6cdc51f..2a6b8a3 100644 --- a/tensorflow/core/grappler/optimizers/function_optimizer.cc +++ b/tensorflow/core/grappler/optimizers/function_optimizer.cc @@ -286,6 +286,12 @@ Status FunctionOptimizer::Optimize(Cluster* cluster, const GrapplerItem& item, if (func.attr().count("_noinline") != 0) { continue; } + // Don't touch anything marked XLA to prevent XLA failures further down the + // road. + if (func.attr().count("_XlaCompile") > 0 && + func.attr().at("_XlaCompile").b()) { + continue; + } // Can't create IdentityN nodes with no input or output: skip these // functions for now. if (func.signature().input_arg_size() == 0 || -- 2.7.4