Sort the control_inputs edges when converting graph to function def
Sort the control_inputs edges when converting graph to function def

This ensures that semantically equivalent graphs always convert to identical FunctionDef. In TPUCompileOp, the compilation cache key includes the fingerprint of the function library run time. Thus, the consistency in the FunctionDef from equivalent graphs avoids unnecessary recompilations in TPUCompileOp.

PiperOrigin-RevId: 247494940

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