Fix a memory leak in TPUStrategy. Currently TPUStrategy always caches the function passed into `strategy.run`, which will causes objects not released in time.
Fix a memory leak in TPUStrategy. Currently TPUStrategy always caches the function passed into `strategy.run`, which will causes objects not released in time.

PiperOrigin-RevId: 318312817
Change-Id: I7b275fe87a4454d94ce31076ce38d12a635c477b

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