Refactor the keras TensorLikeDataAdapter (numpy array, EagerTensor, etc) to use tf.shuffle rather than np.shuffle. This allows us to use more of tf.data's pipelining machinery which both improves multi-epoch performance and decreases memory consumption.
Refactor the keras TensorLikeDataAdapter (numpy array, EagerTensor, etc) to use tf.shuffle rather than np.shuffle. This allows us to use more of tf.data's pipelining machinery which both improves multi-epoch performance and decreases memory consumption.

PiperOrigin-RevId: 264681581

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