Use beam search for latent prediction in transformer ae (only for num_blocks=1 for now).
Use beam search for latent prediction in transformer ae (only for num_blocks=1 for now).

PiperOrigin-RevId: 184774591

tensorflow/tensor2tensor,rsepassi/tensor2tensor,rsepassi/tensor2tensor,rsepassi/tensor2tensor,vthorsteinsson/tensor2tensor,tensorflow/tensor2tensor,vthorsteinsson/tensor2tensor,tensorflow/tensor2tensor,rsepassi/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,vthorsteinsson/tensor2tensor,vthorsteinsson/tensor2tensor