Favour an early return in get_hparams(). This way we don't do needless extra work when we are returning anyways.
Favour an early return in get_hparams(). This way we don't do needless extra work when we are returning anyways.

PiperOrigin-RevId: 229035480

tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor,tensorflow/tensor2tensor