Implement partial constant folding of AddN and AccumulateNV2.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Tue, 27 Feb 2018 18:05:38 +0000 (10:05 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 27 Feb 2018 18:13:17 +0000 (10:13 -0800)
commit0e5458fb95b0b146838a3c61de31bb9497c613ce
treeb937ca0bf6403dbcf2515fafa118cde3963513c8
parentf62f168fc3d59e3f067423fc39b4f5c3bfe2527a
Implement partial constant folding of AddN and AccumulateNV2.
Change AccumulateNV2 to AddN if all inputs are constant, since constant folding doesn't work for the fake node type.

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