T2T data reader was padding knowledge features to max_length unnecessarily because their shape is unknown. Fixed it by explicitly setting shape in preprocessing and removed the unnecessary slices in T2T model code.
T2T data reader was padding knowledge features to max_length unnecessarily because their shape is unknown. Fixed it by explicitly setting shape in preprocessing and removed the unnecessary slices in T2T model code.

PiperOrigin-RevId: 282453938

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