Make gradient tape stack thread local
Make gradient tape stack thread local

PiperOrigin-RevId: 215937618

DavidNorman/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,gautam1858/tensorflow,annarev/tensorflow,davidzchen/tensorflow,annarev/tensorflow,gunan/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,seanli9jan/tensorflow,seanli9jan/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-Corporation/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jendap/tensorflow,hehongliang/tensorflow,gunan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,yongtang/tensorflow,jendap/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,hfp/tensorflow-xsmm,arborh/tensorflow,renyi533/tensorflow,girving/tensorflow,cxxgtxy/tensorflow,snnn/tensorflow,freedomtan/tensorflow,aldian/tensorflow,sarvex/tensorflow,xzturn/tensorflow,jhseu/tensorflow,gunan/tensorflow,dongjoon-hyun/tensorflow,freedomtan/tensorflow,Intel-Corporation/tensorflow,jendap/tensorflow,girving/tensorflow,aldian/tensorflow,dancingdan/tensorflow,karllessard/tensorflow,theflofly/tensorflow,petewarden/tensorflow,apark263/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,Bismarrck/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,tensorflow/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,alshedivat/tensorflow,frreiss/tensorflow-fred,jendap/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,petewarden/tensorflow,ageron/tensorflow,alshedivat/tensorflow,aldian/tensorflow,alshedivat/tensorflow,ageron/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jhseu/tensorflow,cxxgtxy/tensorflow,jendap/tensorflow,seanli9jan/tensorflow,theflofly/tensorflow,alshedivat/tensorflow,ppwwyyxx/tensorflow,jbedorf/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,kevin-coder/tensorflow-fork,gunan/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,Bismarrck/tensorflow,arborh/tensorflow,annarev/tensorflow,renyi533/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,seanli9jan/tensorflow,yongtang/tensorflow,seanli9jan/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,annarev/tensorflow,xzturn/tensorflow,ageron/tensorflow,theflofly/tensorflow,renyi533/tensorflow,xzturn/tensorflow,ghchinoy/tensorflow,ageron/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,girving/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,Bismarrck/tensorflow,cxxgtxy/tensorflow,seanli9jan/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,arborh/tensorflow,annarev/tensorflow,kevin-coder/tensorflow-fork,dancingdan/tensorflow,Intel-tensorflow/tensorflow,Intel-Corporation/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,aldian/tensorflow,paolodedios/tensorflow,ghchinoy/tensorflow,freedomtan/tensorflow,ageron/tensorflow,kevin-coder/tensorflow-fork,asimshankar/tensorflow,tensorflow/tensorflow,gunan/tensorflow,ageron/tensorflow,snnn/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,kevin-coder/tensorflow-fork,davidzchen/tensorflow,brchiu/tensorflow,adit-chandra/tensorflow,karllessard/tensorflow,girving/tensorflow,davidzchen/tensorflow,ghchinoy/tensorflow,girving/tensorflow,gautam1858/tensorflow,ageron/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,dongjoon-hyun/tensorflow,dongjoon-hyun/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,asimshankar/tensorflow,dancingdan/tensorflow,adit-chandra/tensorflow,snnn/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ghchinoy/tensorflow,karllessard/tensorflow,yongtang/tensorflow,jbedorf/tensorflow,brchiu/tensorflow,brchiu/tensorflow,ageron/tensorflow,dancingdan/tensorflow,brchiu/tensorflow,hehongliang/tensorflow,alsrgv/tensorflow,ppwwyyxx/tensorflow,sarvex/tensorflow,jbedorf/tensorflow,Bismarrck/tensorflow,alshedivat/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,ghchinoy/tensorflow,Bismarrck/tensorflow,kevin-coder/tensorflow-fork,xzturn/tensorflow,cxxgtxy/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,karllessard/tensorflow,annarev/tensorflow,Bismarrck/tensorflow,jendap/tensorflow,jendap/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,gautam1858/tensorflow,asimshankar/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,arborh/tensorflow,aam-at/tensorflow,aldian/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,arborh/tensorflow,aam-at/tensorflow,karllessard/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,jbedorf/tensorflow,brchiu/tensorflow,yongtang/tensorflow,seanli9jan/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,arborh/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,apark263/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,adit-chandra/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aam-at/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_saved_model,asimshankar/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,dongjoon-hyun/tensorflow,Intel-tensorflow/tensorflow,jbedorf/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,chemelnucfin/tensorflow,dancingdan/tensorflow,arborh/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,hfp/tensorflow-xsmm,xzturn/tensorflow,ppwwyyxx/tensorflow,dongjoon-hyun/tensorflow,asimshankar/tensorflow,xzturn/tensorflow,dancingdan/tensorflow,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,girving/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,snnn/tensorflow,jhseu/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,seanli9jan/tensorflow,ghchinoy/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,kevin-coder/tensorflow-fork,alsrgv/tensorflow,aam-at/tensorflow,ppwwyyxx/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,brchiu/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,kevin-coder/tensorflow-fork,aam-at/tensorflow,alshedivat/tensorflow,hfp/tensorflow-xsmm,kevin-coder/tensorflow-fork,yongtang/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,girving/tensorflow,seanli9jan/tensorflow,Bismarrck/tensorflow,dongjoon-hyun/tensorflow,karllessard/tensorflow,DavidNorman/tensorflow,girving/tensorflow,ageron/tensorflow,renyi533/tensorflow,seanli9jan/tensorflow,hehongliang/tensorflow,petewarden/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,hehongliang/tensorflow,apark263/tensorflow,cxxgtxy/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,gunan/tensorflow,hehongliang/tensorflow,sarvex/tensorflow,asimshankar/tensorflow,davidzchen/tensorflow,jendap/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,renyi533/tensorflow,alsrgv/tensorflow,jendap/tensorflow,dongjoon-hyun/tensorflow,brchiu/tensorflow,petewarden/tensorflow,chemelnucfin/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,theflofly/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,brchiu/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,girving/tensorflow,renyi533/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,Bismarrck/tensorflow,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow,Bismarrck/tensorflow,dongjoon-hyun/tensorflow,renyi533/tensorflow,asimshankar/tensorflow,karllessard/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,brchiu/tensorflow,apark263/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,apark263/tensorflow,paolodedios/tensorflow,theflofly/tensorflow,ageron/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,snnn/tensorflow,annarev/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kevin-coder/tensorflow-fork,jbedorf/tensorflow,Intel-tensorflow/tensorflow,snnn/tensorflow,petewarden/tensorflow,dancingdan/tensorflow,davidzchen/tensorflow,apark263/tensorflow,theflofly/tensorflow,ageron/tensorflow,theflofly/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,jbedorf/tensorflow,snnn/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,petewarden/tensorflow,Bismarrck/tensorflow,ppwwyyxx/tensorflow,DavidNorman/tensorflow,ppwwyyxx/tensorflow,kevin-coder/tensorflow-fork,Intel-Corporation/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,alshedivat/tensorflow,annarev/tensorflow,gautam1858/tensorflow,hfp/tensorflow-xsmm,Intel-Corporation/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,asimshankar/tensorflow,hfp/tensorflow-xsmm,theflofly/tensorflow,chemelnucfin/tensorflow,frreiss/tensorflow-fred,DavidNorman/tensorflow,jhseu/tensorflow,annarev/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,girving/tensorflow,tensorflow/tensorflow-pywrap_saved_model,alshedivat/tensorflow,dongjoon-hyun/tensorflow,dancingdan/tensorflow,snnn/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,davidzchen/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,frreiss/tensorflow-fred,girving/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,apark263/tensorflow,snnn/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,brchiu/tensorflow,apark263/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,jhseu/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,sarvex/tensorflow,adit-chandra/tensorflow,alsrgv/tensorflow,hehongliang/tensorflow,freedomtan/tensorflow,chemelnucfin/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,aam-at/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,hehongliang/tensorflow,DavidNorman/tensorflow,Intel-Corporation/tensorflow,theflofly/tensorflow,arborh/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,chemelnucfin/tensorflow,arborh/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,arborh/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,snnn/tensorflow,adit-chandra/tensorflow,adit-chandra/tensorflow,hfp/tensorflow-xsmm