Commit ca0a44f1 authored by Eugene Brevdo's avatar Eugene Brevdo Committed by TensorFlower Gardener
Browse files

Clean up rnn nesting code and add raw_rnn method.

As part of the rnn cleanup, nest.flatten and nest.pack_sequence_as
now handle scalar structures (i.e., flatten of a scalar converts it
to a single-element list; and pack_sequence_as performs the reverse).

raw_rnn can be used to implement dynamic decoding of seq2seq models.

added minor tweaks to control flow gradient code to fix python3 errors
in case of zero-length while_loops.
Change: 127259950
parent 5c056006
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment