Fix error message and the checks for tf.get_variable applying the initializer to get the default value
Fix error message and the checks for tf.get_variable applying the initializer to get the default value

PiperOrigin-RevId: 222849262

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