Arithemtic optimization: Rewite Sub(0, y) => Neg(y)
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 26 Feb 2018 18:24:08 +0000 (10:24 -0800)
committerGunhan Gulsoy <gunan@google.com>
Tue, 27 Feb 2018 22:33:33 +0000 (14:33 -0800)
commit1fc324c6701bc179ca73908731857e8a582437b5
tree344b46e8951ebb2ee88865af69e0c74047f1429a
parent0a799feaea50d4e48e8daa1f3954427fdccd76f1
Arithemtic optimization: Rewite Sub(0, y) => Neg(y)

PiperOrigin-RevId: 187041872
tensorflow/core/grappler/optimizers/constant_folding.cc
tensorflow/core/grappler/optimizers/constant_folding.h
tensorflow/core/grappler/optimizers/constant_folding_test.cc