Whitelist weakref instances. Add a toggle for a strict mode in which conversion errors are hard errors, rather than warnings. Include an integration test that exercises the weakref warning.
Whitelist weakref instances. Add a toggle for a strict mode in which conversion errors are hard errors, rather than warnings. Include an integration test that exercises the weakref warning.

PiperOrigin-RevId: 237249687

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