Raise error if maximum_iterations argument to while_loop is defined in control flow...
authorSkye Wanderman-Milne <skyewm@google.com>
Fri, 15 Dec 2017 01:50:27 +0000 (17:50 -0800)
committerTensorFlower Gardener <gardener@tensorflow.org>
Fri, 15 Dec 2017 01:53:36 +0000 (17:53 -0800)
commitca431de46797155f296639cd978f1d2c370c89d5
treeb023d36999e9d27ffb3b9b940901423474ff7157
parent14db6c339cc4aa0a1640dd7b86029f3a1ebad395
Raise error if maximum_iterations argument to while_loop is defined in control flow context.

This also modifies dynamic_rnn to not provide a maximum_iterations
argument if it's called within control flow. This is a hopefully
temporary solution until we better support this usage.

PiperOrigin-RevId: 179125216
tensorflow/python/kernel_tests/control_flow_ops_py_test.py
tensorflow/python/ops/control_flow_ops.py
tensorflow/python/ops/rnn.py