Allow keras.models.load_model to load models that were saved before weighted metrics was added.
Allow keras.models.load_model to load models that were saved before weighted metrics was added.

PiperOrigin-RevId: 212357216

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