Have `model_to_estimator` make a V2 Estimator if TF2 is enabled.
Have `model_to_estimator` make a V2 Estimator if TF2 is enabled.

PiperOrigin-RevId: 258620905

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