Fix nested function inside XLA context.
Fix nested function inside XLA context.

PiperOrigin-RevId: 281777743
Change-Id: I08049f1511e42d0c4eb33ed365b4ec56a9cbf39e

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