In the official documentation of tf.nn.raw_rnn
we have emit structure as the third output of loop_fn
when the loop_fn
is run for the first time.
Later on the emit_structure is used to copy tf.zeros_like(emit_structure)
to the minibatch entries that are finished by emit = tf.where(finished, tf.zeros_like(emit_structure), emit)
.
my lack of understanding or lousy documentation on google's part is: emit structure is None
so tf.where(finished, tf.zeros_like(emit_structure), emit)
is going to throw a ValueError as tf.zeros_like(None)
does so. Can somebody please fill in what I am missing here?