Place padding ops on TPUs if the original input nodes has already been on TPUs, so XLA op demand mode can be triggered. This will avoid unnecessary data copy between host and device.
Place padding ops on TPUs if the original input nodes has already been on TPUs, so XLA op demand mode can be triggered. This will avoid unnecessary data copy between host and device.

PiperOrigin-RevId: 270940275

gunan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,renyi533/tensorflow,annarev/tensorflow,gunan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ppwwyyxx/tensorflow,annarev/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,yongtang/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,gunan/tensorflow,aam-at/tensorflow,petewarden/tensorflow,gunan/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,karllessard/tensorflow,aam-at/tensorflow,davidzchen/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,renyi533/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,gunan/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,arborh/tensorflow,annarev/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,frreiss/tensorflow-fred,xzturn/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,yongtang/tensorflow,jhseu/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ppwwyyxx/tensorflow,renyi533/tensorflow,paolodedios/tensorflow,aldian/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,renyi533/tensorflow,sarvex/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,tensorflow/tensorflow,Intel-Corporation/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,karllessard/tensorflow,renyi533/tensorflow,adit-chandra/tensorflow,gunan/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,davidzchen/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,renyi533/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,gunan/tensorflow,aam-at/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,jhseu/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,renyi533/tensorflow,annarev/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,freedomtan/tensorflow,adit-chandra/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,DavidNorman/tensorflow,cxxgtxy/tensorflow,petewarden/tensorflow,arborh/tensorflow,jhseu/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,renyi533/tensorflow,ppwwyyxx/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,karllessard/tensorflow,arborh/tensorflow,petewarden/tensorflow,xzturn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,xzturn/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,karllessard/tensorflow,paolodedios/tensorflow,adit-chandra/tensorflow,Intel-tensorflow/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,arborh/tensorflow,freedomtan/tensorflow,aam-at/tensorflow,annarev/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,annarev/tensorflow,xzturn/tensorflow,frreiss/tensorflow-fred,jhseu/tensorflow,gunan/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,yongtang/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,aldian/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,xzturn/tensorflow,Intel-tensorflow/tensorflow,frreiss/tensorflow-fred,paolodedios/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,arborh/tensorflow,adit-chandra/tensorflow,sarvex/tensorflow,arborh/tensorflow,jhseu/tensorflow,aldian/tensorflow,aldian/tensorflow,yongtang/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,sarvex/tensorflow,jhseu/tensorflow,aldian/tensorflow,freedomtan/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,cxxgtxy/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,annarev/tensorflow,gunan/tensorflow,paolodedios/tensorflow,paolodedios/tensorflow,gunan/tensorflow,tensorflow/tensorflow,xzturn/tensorflow