Make batch_sequences_with_states_test.py work with the C API enabled, take 2.
authorSkye Wanderman-Milne <skyewm@google.com>
Tue, 3 Apr 2018 16:09:13 +0000 (09:09 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Tue, 3 Apr 2018 16:13:17 +0000 (09:13 -0700)
commit4657e5336160e019379c373a369e3a9b199bc680
tree4a937a9759fcfaabd07f192018a84e5795b9e3f4
parent5d1086ae98ccfe691161ff50c93036d432866741
Make batch_sequences_with_states_test.py work with the C API enabled, take 2.

It turns out the error can depend on what sequence comes first in the
input dict. This change internally sorts the input to make the error
predictable (this is useful for this test, as well as any users who
may run into this).

PiperOrigin-RevId: 191449214
tensorflow/contrib/training/python/training/batch_sequences_with_states_test.py
tensorflow/contrib/training/python/training/sequence_queueing_state_saver.py