Fix disparity between Variables being unhashable when `executing_eagerly_outside_function` and custom_gradients using graph mode when not `executing_eagerly` with a non_zero number of variables in the variable_scope
Fix disparity between Variables being unhashable when `executing_eagerly_outside_function` and custom_gradients using graph mode when not `executing_eagerly` with a non_zero number of variables in the variable_scope

PiperOrigin-RevId: 263861777

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