[XLA] Validate shape on construction during parsing.
[XLA] Validate shape on construction during parsing.

PiperOrigin-RevId: 218892346

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