Deleted a special case
authorBenoit Steiner <bsteiner@google.com>
Tue, 3 Apr 2018 02:32:45 +0000 (19:32 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 3 Apr 2018 02:36:00 +0000 (19:36 -0700)
PiperOrigin-RevId: 191385909

tensorflow/core/grappler/optimizers/function_optimizer.cc

index 2a6b8a3..6cdc51f 100644 (file)
@@ -286,12 +286,6 @@ 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 ||