Move "hoist common factor out of aggregation" optimization
authorA. Unique TensorFlower <gardener@tensorflow.org>
Mon, 12 Mar 2018 20:50:35 +0000 (13:50 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Mon, 12 Mar 2018 20:54:36 +0000 (13:54 -0700)
commit27533f61ddfa674ceccb59777d24e2fe0157f70c
tree4f9afa1dad4e6e679e84b0975be167c74d0b648a
parentbc57adb9576a4f8a04a04dc517d7069a2ac8f330
Move "hoist common factor out of aggregation" optimization
to a separate stage.

1) Use a new naming scheme for optimized ops,
   share it with AddOpsRewrite
2) Make sure that tests actually test that optimized
   nodes exists in a graph

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