Error message improvement ()

* Error message improvement

See https://github.com/tensorflow/tensorflow/issues/7675

* Spacing fix
This commit is contained in:
Reid Pryzant 2017-02-20 09:01:30 -06:00 committed by Shanqing Cai
parent 195b3063e4
commit 06be849aa2

View File

@ -515,7 +515,7 @@ def dynamic_rnn(cell, inputs, sequence_length=None, initial_state=None,
state = initial_state
else:
if not dtype:
raise ValueError("If no initial_state is provided, dtype must be.")
raise ValueError("If there is no initial_state, you must give a dtype.")
state = cell.zero_state(batch_size, dtype)
def _assert_has_shape(x, shape):