Fix softmax_cross_entropy issue
Fix softmax_cross_entropy issue

This fix is from 24397/24736 and all credit goes to @felix-schneider

This fix fixes 24397. This fix fixes 24736.

Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>

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