Don't evaluate control flow in EvaluateConstantTensor.
authorSkye Wanderman-Milne <skyewm@google.com>
Tue, 13 Mar 2018 00:12:32 +0000 (17:12 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 13 Mar 2018 00:16:39 +0000 (17:16 -0700)
commit3b47d5f1e2048ad3721a946c054d7025d9f37a87
tree2fe77b63c3a4267c5fc04a0fd350c45059fc6747
parent6a125bbc0e6fd1e33c90cc6134b2466bbc81198a
Don't evaluate control flow in EvaluateConstantTensor.

ExtractConstantSubgraph doesn't copy control edges, which are sometimes necessary
to correctly evaluate conds (at the very least). Avoid evaluating conds at all to
address this.

PiperOrigin-RevId: 188803649
tensorflow/core/common_runtime/eval_const_tensor.cc
tensorflow/python/framework/smart_cond_test.py