diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-04-24 18:51:45 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-24 18:54:38 -0700 |
commit | 67af43120598bbc30cab34ee5f8d8f8a0aaa1617 (patch) | |
tree | 0a18b616effb9ca83fc0f5a61a09a7a55aebf540 /tensorflow/core/grappler/optimizers/arithmetic_optimizer.h | |
parent | fc726b3e55b8e98f94491e8cf9d3e5114511f219 (diff) |
Enable concat hoisting optimization by default.
PiperOrigin-RevId: 194180248
Diffstat (limited to 'tensorflow/core/grappler/optimizers/arithmetic_optimizer.h')
-rw-r--r-- | tensorflow/core/grappler/optimizers/arithmetic_optimizer.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h b/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h index 375f13acc1..c299bd030b 100644 --- a/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h +++ b/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h @@ -65,16 +65,13 @@ class ArithmeticOptimizer : public GraphOptimizer { bool remove_redundant_bitcast = true; bool remove_redundant_cast = true; bool remove_negation = true; - bool hoist_unary_out_of_concat = false; + bool hoist_unary_out_of_concat = true; // Choose which arithmetic optimizer stages will be enabled for a given // optimization level by default. static ArithmeticOptimizerOptions Default( RewriterConfig::Toggle opt_level) { ArithmeticOptimizerOptions options; - if (opt_level == RewriterConfig::AGGRESSIVE) { - options.hoist_unary_out_of_concat = true; - } return options; } }; |