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

Modify dynamic_rnn to use max_seq_length for its while_loop.

This is especially important with XLA compilation, which will usually have
a maximum time dimension on the input that is (sometimes much larger than)
max(sequence_length).  In these cases, a lot of compute can be saved.

PiperOrigin-RevId: 183148831
parent 2d78a128
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment