Make full model before calling set_model on callback
Make full model before calling set_model on callback

Commit 1b67ccbe8006eacffd268553abd01310e8b187d6 removed the _make_train_function calls from Keras training fit_generator for eager execution.

This breaks some callbacks that depend on the entire model to be populated on the set_model or on_train_begin methods.

This commit adds the method calls back in but guarded by an eager check.  It is not doing a revert / fix because the fix that removed the calls also put a test case in for eager fit_generator testing which we want to retain.

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