Fixing a condition in the op.colocate_with function. Currently the condition fails for eager variables leading to a readVariableOp. This does a D2D copy of resource variables.
Fixing a condition in the op.colocate_with function. Currently the condition fails for eager variables leading to a readVariableOp. This does a D2D copy of resource variables.

PiperOrigin-RevId: 267210467

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