Use more robust method for showing the visualizations.
Use more robust method for showing the visualizations.

PiperOrigin-RevId: 166783838

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