Remove unnecessary messing with colocation root device.
Remove unnecessary messing with colocation root device.

ColocateNodes chooses the which of the two colocation groups' roots
should become the new root. Then, it merges the device_names of the
two roots and assigns the merged name to the new root. The merged name
is always more (or equal) specific than the original names.

The removed code did the same thing with the only exception of
sometimes changing the device_name of the node that will not be the new
root. This has no effect because device selection for all the nodes in
a group is done using the information in the root of the group.

PiperOrigin-RevId: 231004097

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