Simplify batch_dot logic
Simplify batch_dot logic

Remove dead logical branch.

PiperOrigin-RevId: 214980627

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