Avoid calling K.learning_phase() when not necessary in Dropout layer since it instantiates a placeholder_with_default, which is not supported by TPU compilation.
Avoid calling K.learning_phase() when not necessary in Dropout layer since it instantiates a placeholder_with_default, which is not supported by TPU compilation.

PiperOrigin-RevId: 192705478

freedomtan/tensorflow,ppwwyyxx/tensorflow,Bismarrck/tensorflow,dendisuhubdy/tensorflow,dendisuhubdy/tensorflow,frreiss/tensorflow-fred,dancingdan/tensorflow,drpngx/tensorflow,xzturn/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,benoitsteiner/tensorflow-xsmm,meteorcloudy/tensorflow,petewarden/tensorflow,jart/tensorflow,annarev/tensorflow,dendisuhubdy/tensorflow,aselle/tensorflow,chemelnucfin/tensorflow,ageron/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,kevin-coder/tensorflow-fork,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,DavidNorman/tensorflow,annarev/tensorflow,freedomtan/tensorflow,hehongliang/tensorflow,alsrgv/tensorflow,ZhangXinNan/tensorflow,xodus7/tensorflow,snnn/tensorflow,asimshankar/tensorflow,dendisuhubdy/tensorflow,theflofly/tensorflow,ZhangXinNan/tensorflow,sarvex/tensorflow,cxxgtxy/tensorflow,benoitsteiner/tensorflow-xsmm,dendisuhubdy/tensorflow,theflofly/tensorflow,jalexvig/tensorflow,brchiu/tensorflow,hfp/tensorflow-xsmm,kobejean/tensorflow,frreiss/tensorflow-fred,eaplatanios/tensorflow,jbedorf/tensorflow,lukeiwanski/tensorflow,davidzchen/tensorflow,annarev/tensorflow,theflofly/tensorflow,brchiu/tensorflow,aselle/tensorflow,brchiu/tensorflow,renyi533/tensorflow,ageron/tensorflow,meteorcloudy/tensorflow,drpngx/tensorflow,arborh/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,aldian/tensorflow,drpngx/tensorflow,snnn/tensorflow,davidzchen/tensorflow,asimshankar/tensorflow,theflofly/tensorflow,girving/tensorflow,freedomtan/tensorflow,dancingdan/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,nburn42/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,hfp/tensorflow-xsmm,paolodedios/tensorflow,alshedivat/tensorflow,alsrgv/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,hehongliang/tensorflow,jhseu/tensorflow,paolodedios/tensorflow,ppwwyyxx/tensorflow,yongtang/tensorflow,jhseu/tensorflow,gojira/tensorflow,kobejean/tensorflow,dancingdan/tensorflow,AnishShah/tensorflow,ppwwyyxx/tensorflow,ZhangXinNan/tensorflow,aldian/tensorflow,drpngx/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,kobejean/tensorflow,theflofly/tensorflow,jhseu/tensorflow,freedomtan/tensorflow,karllessard/tensorflow,xzturn/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,xzturn/tensorflow,jart/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ZhangXinNan/tensorflow,caisq/tensorflow,davidzchen/tensorflow,alshedivat/tensorflow,adit-chandra/tensorflow,apark263/tensorflow,ageron/tensorflow,paolodedios/tensorflow,caisq/tensorflow,ageron/tensorflow,xodus7/tensorflow,aselle/tensorflow,meteorcloudy/tensorflow,dendisuhubdy/tensorflow,xzturn/tensorflow,gojira/tensorflow,theflofly/tensorflow,karllessard/tensorflow,jalexvig/tensorflow,eaplatanios/tensorflow,jendap/tensorflow,dongjoon-hyun/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,asimshankar/tensorflow,DavidNorman/tensorflow,jhseu/tensorflow,theflofly/tensorflow,kobejean/tensorflow,davidzchen/tensorflow,xzturn/tensorflow,yongtang/tensorflow,apark263/tensorflow,alshedivat/tensorflow,dongjoon-hyun/tensorflow,ghchinoy/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,caisq/tensorflow,asimshankar/tensorflow,karllessard/tensorflow,aam-at/tensorflow,meteorcloudy/tensorflow,drpngx/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,renyi533/tensorflow,jalexvig/tensorflow,girving/tensorflow,ghchinoy/tensorflow,gojira/tensorflow,AnishShah/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,chemelnucfin/tensorflow,Intel-tensorflow/tensorflow,hfp/tensorflow-xsmm,nburn42/tensorflow,brchiu/tensorflow,asimshankar/tensorflow,chemelnucfin/tensorflow,davidzchen/tensorflow,dancingdan/tensorflow,brchiu/tensorflow,ageron/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,renyi533/tensorflow,apark263/tensorflow,dancingdan/tensorflow,cxxgtxy/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,dongjoon-hyun/tensorflow,yanchen036/tensorflow,ppwwyyxx/tensorflow,gunan/tensorflow,Bismarrck/tensorflow,jendap/tensorflow,aselle/tensorflow,kobejean/tensorflow,apark263/tensorflow,Intel-Corporation/tensorflow,freedomtan/tensorflow,xodus7/tensorflow,yongtang/tensorflow,kobejean/tensorflow,tensorflow/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,meteorcloudy/tensorflow,ghchinoy/tensorflow,renyi533/tensorflow,tensorflow/tensorflow,ZhangXinNan/tensorflow,cxxgtxy/tensorflow,AnishShah/tensorflow,aam-at/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jart/tensorflow,freedomtan/tensorflow,manipopopo/tensorflow,hfp/tensorflow-xsmm,aselle/tensorflow,adit-chandra/tensorflow,asimshankar/tensorflow,lukeiwanski/tensorflow,xzturn/tensorflow,jart/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,jendap/tensorflow,nburn42/tensorflow,girving/tensorflow,ghchinoy/tensorflow,nburn42/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-experimental_link_static_libraries_once,hfp/tensorflow-xsmm,paolodedios/tensorflow,girving/tensorflow,freedomtan/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,nburn42/tensorflow,tensorflow/tensorflow,adit-chandra/tensorflow,snnn/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ZhangXinNan/tensorflow,freedomtan/tensorflow,gojira/tensorflow,gunan/tensorflow,yongtang/tensorflow,girving/tensorflow,manipopopo/tensorflow,hehongliang/tensorflow,dendisuhubdy/tensorflow,karllessard/tensorflow,theflofly/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,yanchen036/tensorflow,chemelnucfin/tensorflow,alsrgv/tensorflow,DavidNorman/tensorflow,eaplatanios/tensorflow,aldian/tensorflow,seanli9jan/tensorflow,jbedorf/tensorflow,freedomtan/tensorflow,Intel-tensorflow/tensorflow,annarev/tensorflow,drpngx/tensorflow,jart/tensorflow,snnn/tensorflow,caisq/tensorflow,sarvex/tensorflow,Bismarrck/tensorflow,aldian/tensorflow,nburn42/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,adit-chandra/tensorflow,kevin-coder/tensorflow-fork,lukeiwanski/tensorflow,AnishShah/tensorflow,xzturn/tensorflow,alsrgv/tensorflow,ZhangXinNan/tensorflow,seanli9jan/tensorflow,asimshankar/tensorflow,lukeiwanski/tensorflow,snnn/tensorflow,cxxgtxy/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,yanchen036/tensorflow,davidzchen/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,chemelnucfin/tensorflow,lukeiwanski/tensorflow,benoitsteiner/tensorflow-xsmm,aselle/tensorflow,hfp/tensorflow-xsmm,arborh/tensorflow,eaplatanios/tensorflow,xzturn/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,apark263/tensorflow,lukeiwanski/tensorflow,arborh/tensorflow,ZhangXinNan/tensorflow,yanchen036/tensorflow,aselle/tensorflow,hfp/tensorflow-xsmm,petewarden/tensorflow,gojira/tensorflow,alsrgv/tensorflow,dongjoon-hyun/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,Bismarrck/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,frreiss/tensorflow-fred,karllessard/tensorflow,kevin-coder/tensorflow-fork,jhseu/tensorflow,petewarden/tensorflow,jart/tensorflow,alshedivat/tensorflow,theflofly/tensorflow,theflofly/tensorflow,seanli9jan/tensorflow,alshedivat/tensorflow,xodus7/tensorflow,renyi533/tensorflow,arborh/tensorflow,gunan/tensorflow,alshedivat/tensorflow,nburn42/tensorflow,apark263/tensorflow,gojira/tensorflow,drpngx/tensorflow,seanli9jan/tensorflow,paolodedios/tensorflow,renyi533/tensorflow,tensorflow/tensorflow-pywrap_saved_model,xzturn/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,Intel-tensorflow/tensorflow,jendap/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,gunan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,arborh/tensorflow,AnishShah/tensorflow,benoitsteiner/tensorflow-xsmm,gautam1858/tensorflow,freedomtan/tensorflow,yongtang/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,jbedorf/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,chemelnucfin/tensorflow,dancingdan/tensorflow,adit-chandra/tensorflow,eaplatanios/tensorflow,brchiu/tensorflow,girving/tensorflow,jendap/tensorflow,dongjoon-hyun/tensorflow,adit-chandra/tensorflow,apark263/tensorflow,girving/tensorflow,benoitsteiner/tensorflow-xsmm,DavidNorman/tensorflow,tensorflow/tensorflow,gojira/tensorflow,paolodedios/tensorflow,gojira/tensorflow,eaplatanios/tensorflow,manipopopo/tensorflow,aselle/tensorflow,xzturn/tensorflow,Bismarrck/tensorflow,nburn42/tensorflow,yongtang/tensorflow,kobejean/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,apark263/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,DavidNorman/tensorflow,manipopopo/tensorflow,gunan/tensorflow,meteorcloudy/tensorflow,kobejean/tensorflow,yongtang/tensorflow,gunan/tensorflow,davidzchen/tensorflow,aldian/tensorflow,yongtang/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,xodus7/tensorflow,dendisuhubdy/tensorflow,kevin-coder/tensorflow-fork,gunan/tensorflow,Intel-tensorflow/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,sarvex/tensorflow,alshedivat/tensorflow,petewarden/tensorflow,girving/tensorflow,xodus7/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,petewarden/tensorflow,nburn42/tensorflow,karllessard/tensorflow,renyi533/tensorflow,davidzchen/tensorflow,drpngx/tensorflow,alsrgv/tensorflow,seanli9jan/tensorflow,lukeiwanski/tensorflow,aam-at/tensorflow,arborh/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,manipopopo/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,aselle/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,nburn42/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,karllessard/tensorflow,xodus7/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ZhangXinNan/tensorflow,ppwwyyxx/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,hehongliang/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,caisq/tensorflow,ppwwyyxx/tensorflow,yanchen036/tensorflow,karllessard/tensorflow,eaplatanios/tensorflow,benoitsteiner/tensorflow-xsmm,kobejean/tensorflow,jart/tensorflow,sarvex/tensorflow,ppwwyyxx/tensorflow,Intel-tensorflow/tensorflow,jbedorf/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,Bismarrck/tensorflow,jalexvig/tensorflow,ageron/tensorflow,jart/tensorflow,gunan/tensorflow,DavidNorman/tensorflow,tensorflow/tensorflow-pywrap_saved_model,ghchinoy/tensorflow,caisq/tensorflow,girving/tensorflow,eaplatanios/tensorflow,yongtang/tensorflow,AnishShah/tensorflow,hehongliang/tensorflow,brchiu/tensorflow,brchiu/tensorflow,dongjoon-hyun/tensorflow,yanchen036/tensorflow,Bismarrck/tensorflow,jalexvig/tensorflow,annarev/tensorflow,jendap/tensorflow,davidzchen/tensorflow,kevin-coder/tensorflow-fork,renyi533/tensorflow,kobejean/tensorflow,DavidNorman/tensorflow,aldian/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aselle/tensorflow,annarev/tensorflow,seanli9jan/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,arborh/tensorflow,aam-at/tensorflow,ghchinoy/tensorflow,jendap/tensorflow,apark263/tensorflow,alshedivat/tensorflow,Bismarrck/tensorflow,aam-at/tensorflow,drpngx/tensorflow,dongjoon-hyun/tensorflow,xzturn/tensorflow,jhseu/tensorflow,adit-chandra/tensorflow,kevin-coder/tensorflow-fork,jalexvig/tensorflow,frreiss/tensorflow-fred,arborh/tensorflow,gautam1858/tensorflow,seanli9jan/tensorflow,dancingdan/tensorflow,renyi533/tensorflow,jhseu/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,gautam1858/tensorflow,AnishShah/tensorflow,chemelnucfin/tensorflow,davidzchen/tensorflow,theflofly/tensorflow,aldian/tensorflow,brchiu/tensorflow,ghchinoy/tensorflow,nburn42/tensorflow,ageron/tensorflow,karllessard/tensorflow,gojira/tensorflow,caisq/tensorflow,snnn/tensorflow,snnn/tensorflow,eaplatanios/tensorflow,alsrgv/tensorflow,yanchen036/tensorflow,tensorflow/tensorflow,manipopopo/tensorflow,sarvex/tensorflow,hfp/tensorflow-xsmm,snnn/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,caisq/tensorflow,kevin-coder/tensorflow-fork,yanchen036/tensorflow,tensorflow/tensorflow,eaplatanios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,snnn/tensorflow,meteorcloudy/tensorflow,chemelnucfin/tensorflow,Bismarrck/tensorflow,apark263/tensorflow,ppwwyyxx/tensorflow,gojira/tensorflow,karllessard/tensorflow,jbedorf/tensorflow,manipopopo/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,frreiss/tensorflow-fred,petewarden/tensorflow,aam-at/tensorflow,jart/tensorflow,Intel-Corporation/tensorflow,jbedorf/tensorflow,annarev/tensorflow,arborh/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,gunan/tensorflow,alshedivat/tensorflow,annarev/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,dendisuhubdy/tensorflow,petewarden/tensorflow,eaplatanios/tensorflow,Intel-Corporation/tensorflow,asimshankar/tensorflow,arborh/tensorflow,meteorcloudy/tensorflow,benoitsteiner/tensorflow-xsmm,gautam1858/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,benoitsteiner/tensorflow-xsmm,paolodedios/tensorflow,seanli9jan/tensorflow,dendisuhubdy/tensorflow,jendap/tensorflow,alshedivat/tensorflow,jalexvig/tensorflow,jbedorf/tensorflow,AnishShah/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,meteorcloudy/tensorflow,jhseu/tensorflow,alsrgv/tensorflow,aam-at/tensorflow,aam-at/tensorflow,cxxgtxy/tensorflow,manipopopo/tensorflow,aselle/tensorflow,frreiss/tensorflow-fred,dancingdan/tensorflow,jendap/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,kevin-coder/tensorflow-fork,jart/tensorflow,xodus7/tensorflow,hehongliang/tensorflow,brchiu/tensorflow,jbedorf/tensorflow,jbedorf/tensorflow,cxxgtxy/tensorflow,xodus7/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,cxxgtxy/tensorflow,renyi533/tensorflow,sarvex/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow-xsmm,Intel-Corporation/tensorflow,xodus7/tensorflow,ghchinoy/tensorflow,lukeiwanski/tensorflow,yongtang/tensorflow,caisq/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_tf_optimizer,brchiu/tensorflow,drpngx/tensorflow,gautam1858/tensorflow,gunan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,AnishShah/tensorflow,ppwwyyxx/tensorflow,jendap/tensorflow,ageron/tensorflow,girving/tensorflow,asimshankar/tensorflow,ZhangXinNan/tensorflow,ageron/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,dancingdan/tensorflow,AnishShah/tensorflow,yongtang/tensorflow,dongjoon-hyun/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,alshedivat/tensorflow,lukeiwanski/tensorflow,aam-at/tensorflow,gojira/tensorflow,gunan/tensorflow,ageron/tensorflow,sarvex/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jalexvig/tensorflow,apark263/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,lukeiwanski/tensorflow,kobejean/tensorflow,snnn/tensorflow,seanli9jan/tensorflow,petewarden/tensorflow,ageron/tensorflow,girving/tensorflow,asimshankar/tensorflow,petewarden/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,kevin-coder/tensorflow-fork,xodus7/tensorflow,ageron/tensorflow,theflofly/tensorflow,jbedorf/tensorflow,dongjoon-hyun/tensorflow,karllessard/tensorflow