Fix bug that causes NotImplementedError when using tf.gather_nd on variables that are not ResourceVariable.
Fix bug that causes NotImplementedError when using tf.gather_nd on variables that are not ResourceVariable.

PiperOrigin-RevId: 241890171

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