Add arithmetic optimizer stage that removes LogicalNot that takes a comparison as...
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 21 May 2018 23:14:10 +0000 (16:14 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 21 May 2018 23:18:47 +0000 (16:18 -0700)
commit4d03411da6fcc803d9abcef97a59072144e325f9
treee336af7175e3ed146f80a38d3275c5026cdc1f39
parentd67a99406f986021df9a0f8a99ff6eaf801dcb25
Add arithmetic optimizer stage that removes LogicalNot that takes a comparison as input, i.e.

!(a == b)  =>  a != b
!(a != b)  =>  a == b
!(a < b)   =>  a >= b
!(a <= b)  =>  a > b
!(a > b)   =>  a <= b
!(a >= b)  =>  a < b

PiperOrigin-RevId: 197477959
tensorflow/core/grappler/optimizers/arithmetic_optimizer.cc
tensorflow/core/grappler/optimizers/arithmetic_optimizer.h
tensorflow/core/grappler/optimizers/arithmetic_optimizer_test.cc