[tfdbg] Address the issue that function weakref may become unreferencable
[tfdbg] Address the issue that function weakref may become unreferencable

Store functions as keys instead.

PiperOrigin-RevId: 285311043
Change-Id: I383964e00a6b6bff7c7709bdcbbfe45683168d1a

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