diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-05-03 14:11:13 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-05-04 10:25:49 -0700 |
commit | a4a9e372f6af694e91ef7aaae9f23867d0ec0fc2 (patch) | |
tree | b5059563dcff400c88db5163df82cdc1b54fc0b2 /tensorflow/core/grappler/optimizers/arithmetic_optimizer.h | |
parent | 518dfea0d6d45448a360a49635fe815a28730c46 (diff) |
Optimize idempotent ops, e.g., Snapshot(Snapshot(x)) => Snapshot(x)
PiperOrigin-RevId: 195308675
Diffstat (limited to 'tensorflow/core/grappler/optimizers/arithmetic_optimizer.h')
-rw-r--r-- | tensorflow/core/grappler/optimizers/arithmetic_optimizer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h b/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h index 6309dc1a33..3f9feac55f 100644 --- a/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h +++ b/tensorflow/core/grappler/optimizers/arithmetic_optimizer.h @@ -67,6 +67,7 @@ class ArithmeticOptimizer : public GraphOptimizer { bool remove_negation = true; bool hoist_cwise_unary_chains = true; bool convert_sqrt_div_to_rsqrt_mul = false; + bool remove_idempotent = true; // Choose which arithmetic optimizer stages will be enabled for a given // optimization level by default. |