Switch from static_rnn to dynamic_rnn. This significantly reduces CPU/GPU memory and fixes the OOM errors.
Switch from static_rnn to dynamic_rnn. This significantly reduces CPU/GPU
memory and fixes the OOM errors.

PiperOrigin-RevId: 172374935

alexgorban/models,tombstone/models,cshallue/models,derekjchow/models,alexgorban/models,derekjchow/models,jiaphuan/models,alexgorban/models,tombstone/models,jiaphuan/models,tombstone/models,tombstone/models,cshallue/models,cshallue/models,jiaphuan/models,tombstone/models,jiaphuan/models,tombstone/models,jiaphuan/models,jiaphuan/models,cshallue/models,alexgorban/models,derekjchow/models,derekjchow/models,alexgorban/models,derekjchow/models,cshallue/models