Avoid re-evaluating batch_size in BatchDataset. This will help the startup time performance in remote eager, as each evaluation is underlying calling EagerTensor.numpy(), which is a blocking point.
Avoid re-evaluating batch_size in BatchDataset. This will help the startup time performance in remote eager, as each evaluation is underlying calling EagerTensor.numpy(), which is a blocking point.

PiperOrigin-RevId: 275493018
Change-Id: I08db359dbaf56fe361c3c13d7edbbb15f58d05be

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