Improve errors raised when an object does not match the RNNCell interface.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Sun, 11 Mar 2018 17:00:02 +0000 (10:00 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Sun, 11 Mar 2018 17:04:13 +0000 (10:04 -0700)
commitd58f2b50b66d555790de51d5036320949101afa1
treecb6d59884aab90648cab0e5f03cef8bfec52afce
parent0c0ee52e7841f7d14b4c8465a5825aaa2fef0fdb
Improve errors raised when an object does not match the RNNCell interface.

PiperOrigin-RevId: 188651070
tensorflow/contrib/rnn/python/kernel_tests/rnn_cell_test.py
tensorflow/contrib/rnn/python/ops/core_rnn_cell.py
tensorflow/contrib/rnn/python/ops/rnn_cell.py
tensorflow/contrib/seq2seq/python/ops/attention_wrapper.py
tensorflow/contrib/seq2seq/python/ops/basic_decoder.py
tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py
tensorflow/python/ops/rnn.py
tensorflow/python/ops/rnn_cell_impl.py