Enable constant propagation across Enter nodes, but only if is_constant is true.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 4 Apr 2018 23:05:08 +0000 (16:05 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 4 Apr 2018 23:07:48 +0000 (16:07 -0700)
commit7cee71e28e98bac613623feea19c4a51439e9a0a
tree0493134b8b8ab937cde7c4059b68824edae0a1cd
parentf034e6c457ab283dbe42b1bf561943c9fa5dffe7
Enable constant propagation across Enter nodes, but only if is_constant is true.
Don't propagate constants with control dependencies through Merge nodes.

PiperOrigin-RevId: 191663396
tensorflow/core/grappler/optimizers/constant_folding.cc
tensorflow/core/grappler/optimizers/constant_folding_test.cc
tensorflow/python/BUILD
tensorflow/python/grappler/constant_folding_test.py [new file with mode: 0644]