Show friendlier error message on failure in tf_optimizer.i
Show friendlier error message on failure in tf_optimizer.i

Without it we trigger a segmentation fault, but later in a different stack, which is not so helpful.

PiperOrigin-RevId: 183307729

yanchen036/tensorflow,davidzchen/tensorflow,snnn/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,asimshankar/tensorflow,nolanliou/tensorflow,rabipanda/tensorflow,dongjoon-hyun/tensorflow,eaplatanios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,rabipanda/tensorflow,eaplatanios/tensorflow,karllessard/tensorflow,ageron/tensorflow,Intel-tensorflow/tensorflow,girving/tensorflow,xodus7/tensorflow,seanli9jan/tensorflow,kevin-coder/tensorflow-fork,lukeiwanski/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,caisq/tensorflow,dongjoon-hyun/tensorflow,annarev/tensorflow,kobejean/tensorflow,apark263/tensorflow,snnn/tensorflow,ppwwyyxx/tensorflow,paolodedios/tensorflow,zasdfgbnm/tensorflow,karllessard/tensorflow,kevin-coder/tensorflow-fork,dendisuhubdy/tensorflow,nolanliou/tensorflow,benoitsteiner/tensorflow-xsmm,xodus7/tensorflow,DavidNorman/tensorflow,theflofly/tensorflow,kobejean/tensorflow,jalexvig/tensorflow,nburn42/tensorflow,kobejean/tensorflow,manipopopo/tensorflow,arborh/tensorflow,gunan/tensorflow,freedomtan/tensorflow,rabipanda/tensorflow,nolanliou/tensorflow,Intel-tensorflow/tensorflow,zasdfgbnm/tensorflow,kevin-coder/tensorflow-fork,paolodedios/tensorflow,jalexvig/tensorflow,manipopopo/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,av8ramit/tensorflow,ageron/tensorflow,renyi533/tensorflow,frreiss/tensorflow-fred,dendisuhubdy/tensorflow,benoitsteiner/tensorflow-xsmm,benoitsteiner/tensorflow-xsmm,snnn/tensorflow,ravindrapanda/tensorflow,karllessard/tensorflow,jart/tensorflow,girving/tensorflow,snnn/tensorflow,freedomtan/tensorflow,jendap/tensorflow,Xeralux/tensorflow,theflofly/tensorflow,brchiu/tensorflow,renyi533/tensorflow,meteorcloudy/tensorflow,av8ramit/tensorflow,nburn42/tensorflow,alshedivat/tensorflow,nolanliou/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,girving/tensorflow,ppwwyyxx/tensorflow,jhseu/tensorflow,aselle/tensorflow,aam-at/tensorflow,brchiu/tensorflow,chemelnucfin/tensorflow,caisq/tensorflow,jendap/tensorflow,renyi533/tensorflow,dendisuhubdy/tensorflow,ghchinoy/tensorflow,aam-at/tensorflow,frreiss/tensorflow-fred,Xeralux/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,annarev/tensorflow,jalexvig/tensorflow,dancingdan/tensorflow,lukeiwanski/tensorflow,gunan/tensorflow,arborh/tensorflow,arborh/tensorflow,gunan/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,alshedivat/tensorflow,xzturn/tensorflow,brchiu/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow-pywrap_tf_optimizer,asimshankar/tensorflow,dancingdan/tensorflow,ravindrapanda/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,allenlavoie/tensorflow,Intel-Corporation/tensorflow,zasdfgbnm/tensorflow,seanli9jan/tensorflow,yanchen036/tensorflow,brchiu/tensorflow,yanchen036/tensorflow,jart/tensorflow,paolodedios/tensorflow,seanli9jan/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,ravindrapanda/tensorflow,hehongliang/tensorflow,caisq/tensorflow,cxxgtxy/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xzturn/tensorflow,tensorflow/tensorflow,caisq/tensorflow,hehongliang/tensorflow,jhseu/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,ghchinoy/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,renyi533/tensorflow,hehongliang/tensorflow,xzturn/tensorflow,girving/tensorflow,kobejean/tensorflow,Xeralux/tensorflow,jendap/tensorflow,Intel-tensorflow/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,paolodedios/tensorflow,eaplatanios/tensorflow,zasdfgbnm/tensorflow,rabipanda/tensorflow,karllessard/tensorflow,frreiss/tensorflow-fred,dancingdan/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,dongjoon-hyun/tensorflow,annarev/tensorflow,benoitsteiner/tensorflow-xsmm,jalexvig/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,kobejean/tensorflow,Bismarrck/tensorflow,asimshankar/tensorflow,zasdfgbnm/tensorflow,arborh/tensorflow,jhseu/tensorflow,jendap/tensorflow,meteorcloudy/tensorflow,drpngx/tensorflow,snnn/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,jart/tensorflow,AnishShah/tensorflow,manipopopo/tensorflow,allenlavoie/tensorflow,Intel-Corporation/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow,freedomtan/tensorflow,jart/tensorflow,xzturn/tensorflow,petewarden/tensorflow,nolanliou/tensorflow,rabipanda/tensorflow,seanli9jan/tensorflow,ageron/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,jalexvig/tensorflow,kevin-coder/tensorflow-fork,zasdfgbnm/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,snnn/tensorflow,aselle/tensorflow,cxxgtxy/tensorflow,annarev/tensorflow,dendisuhubdy/tensorflow,chemelnucfin/tensorflow,ppwwyyxx/tensorflow,apark263/tensorflow,karllessard/tensorflow,lukeiwanski/tensorflow,gautam1858/tensorflow,jhseu/tensorflow,seanli9jan/tensorflow,jhseu/tensorflow,petewarden/tensorflow,apark263/tensorflow,dongjoon-hyun/tensorflow,ZhangXinNan/tensorflow,nburn42/tensorflow,petewarden/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,Intel-tensorflow/tensorflow,jbedorf/tensorflow,nolanliou/tensorflow,dancingdan/tensorflow,girving/tensorflow,xodus7/tensorflow,aam-at/tensorflow,gunan/tensorflow,gunan/tensorflow,jhseu/tensorflow,gautam1858/tensorflow,theflofly/tensorflow,meteorcloudy/tensorflow,hehongliang/tensorflow,aldian/tensorflow,asimshankar/tensorflow,davidzchen/tensorflow,theflofly/tensorflow,theflofly/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,adit-chandra/tensorflow,Xeralux/tensorflow,jhseu/tensorflow,chemelnucfin/tensorflow,xzturn/tensorflow,adit-chandra/tensorflow,Xeralux/tensorflow,theflofly/tensorflow,Intel-tensorflow/tensorflow,Xeralux/tensorflow,manipopopo/tensorflow,benoitsteiner/tensorflow-xsmm,ZhangXinNan/tensorflow,ppwwyyxx/tensorflow,aam-at/tensorflow,chemelnucfin/tensorflow,rabipanda/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,alshedivat/tensorflow,nburn42/tensorflow,DavidNorman/tensorflow,arborh/tensorflow,av8ramit/tensorflow,zasdfgbnm/tensorflow,arborh/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,gojira/tensorflow,yanchen036/tensorflow,benoitsteiner/tensorflow-xsmm,rabipanda/tensorflow,meteorcloudy/tensorflow,jart/tensorflow,renyi533/tensorflow,theflofly/tensorflow,drpngx/tensorflow,chemelnucfin/tensorflow,chemelnucfin/tensorflow,dancingdan/tensorflow,renyi533/tensorflow,manipopopo/tensorflow,jendap/tensorflow,gautam1858/tensorflow,gunan/tensorflow,lukeiwanski/tensorflow,aldian/tensorflow,ZhangXinNan/tensorflow,girving/tensorflow,girving/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,hfp/tensorflow-xsmm,xzturn/tensorflow,cxxgtxy/tensorflow,xzturn/tensorflow,lukeiwanski/tensorflow,eaplatanios/tensorflow,jendap/tensorflow,aam-at/tensorflow,eaplatanios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,apark263/tensorflow,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,apark263/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,snnn/tensorflow,apark263/tensorflow,brchiu/tensorflow,gojira/tensorflow,manipopopo/tensorflow,Bismarrck/tensorflow,jalexvig/tensorflow,gojira/tensorflow,dendisuhubdy/tensorflow,AnishShah/tensorflow,zasdfgbnm/tensorflow,eaplatanios/tensorflow,yongtang/tensorflow,meteorcloudy/tensorflow,kevin-coder/tensorflow-fork,ghchinoy/tensorflow,sarvex/tensorflow,zasdfgbnm/tensorflow,AnishShah/tensorflow,alsrgv/tensorflow,Intel-Corporation/tensorflow,caisq/tensorflow,nolanliou/tensorflow,jalexvig/tensorflow,xzturn/tensorflow,annarev/tensorflow,hfp/tensorflow-xsmm,kobejean/tensorflow,jendap/tensorflow,nburn42/tensorflow,lukeiwanski/tensorflow,zasdfgbnm/tensorflow,karllessard/tensorflow,annarev/tensorflow,theflofly/tensorflow,annarev/tensorflow,caisq/tensorflow,Bismarrck/tensorflow,jbedorf/tensorflow,ghchinoy/tensorflow,brchiu/tensorflow,snnn/tensorflow,ravindrapanda/tensorflow,Bismarrck/tensorflow,DavidNorman/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,adit-chandra/tensorflow,aldian/tensorflow,ageron/tensorflow,hfp/tensorflow-xsmm,jendap/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,ravindrapanda/tensorflow,av8ramit/tensorflow,dendisuhubdy/tensorflow,ravindrapanda/tensorflow,rabipanda/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,lukeiwanski/tensorflow,snnn/tensorflow,DavidNorman/tensorflow,DavidNorman/tensorflow,xzturn/tensorflow,drpngx/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,ageron/tensorflow,aselle/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,av8ramit/tensorflow,asimshankar/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,chemelnucfin/tensorflow,caisq/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,renyi533/tensorflow,ravindrapanda/tensorflow,girving/tensorflow,AnishShah/tensorflow,jendap/tensorflow,yanchen036/tensorflow,freedomtan/tensorflow,aldian/tensorflow,kobejean/tensorflow,kevin-coder/tensorflow-fork,jbedorf/tensorflow,gautam1858/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,Intel-Corporation/tensorflow,manipopopo/tensorflow,annarev/tensorflow,chemelnucfin/tensorflow,apark263/tensorflow,sarvex/tensorflow,asimshankar/tensorflow,jbedorf/tensorflow,ageron/tensorflow,allenlavoie/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,xodus7/tensorflow,aam-at/tensorflow,renyi533/tensorflow,gojira/tensorflow,ageron/tensorflow,drpngx/tensorflow,hfp/tensorflow-xsmm,ZhangXinNan/tensorflow,jart/tensorflow,cxxgtxy/tensorflow,davidzchen/tensorflow,aselle/tensorflow,gunan/tensorflow,dongjoon-hyun/tensorflow,alshedivat/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yongtang/tensorflow,xodus7/tensorflow,ghchinoy/tensorflow,chemelnucfin/tensorflow,karllessard/tensorflow,jbedorf/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,gautam1858/tensorflow,yanchen036/tensorflow,jbedorf/tensorflow,cxxgtxy/tensorflow,ghchinoy/tensorflow,nburn42/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,Bismarrck/tensorflow,gojira/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,brchiu/tensorflow,girving/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,davidzchen/tensorflow,ZhangXinNan/tensorflow,AnishShah/tensorflow,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,nburn42/tensorflow,tensorflow/tensorflow,kobejean/tensorflow,tensorflow/tensorflow-pywrap_saved_model,jalexvig/tensorflow,alsrgv/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,paolodedios/tensorflow,Bismarrck/tensorflow,cxxgtxy/tensorflow,dancingdan/tensorflow,renyi533/tensorflow,hfp/tensorflow-xsmm,aam-at/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,AnishShah/tensorflow,dongjoon-hyun/tensorflow,sarvex/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,apark263/tensorflow,drpngx/tensorflow,ppwwyyxx/tensorflow,freedomtan/tensorflow,jbedorf/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,aam-at/tensorflow,alshedivat/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,manipopopo/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,ZhangXinNan/tensorflow,AnishShah/tensorflow,nolanliou/tensorflow,tensorflow/tensorflow,AnishShah/tensorflow,av8ramit/tensorflow,nburn42/tensorflow,av8ramit/tensorflow,ghchinoy/tensorflow,drpngx/tensorflow,benoitsteiner/tensorflow-xsmm,girving/tensorflow,ravindrapanda/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jalexvig/tensorflow,adit-chandra/tensorflow,jbedorf/tensorflow,eaplatanios/tensorflow,aam-at/tensorflow,drpngx/tensorflow,frreiss/tensorflow-fred,alsrgv/tensorflow,lukeiwanski/tensorflow,xzturn/tensorflow,drpngx/tensorflow,theflofly/tensorflow,av8ramit/tensorflow,davidzchen/tensorflow,gautam1858/tensorflow,jendap/tensorflow,petewarden/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,tensorflow/tensorflow,dongjoon-hyun/tensorflow,yongtang/tensorflow,arborh/tensorflow,eaplatanios/tensorflow,renyi533/tensorflow,ghchinoy/tensorflow,brchiu/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,av8ramit/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,yongtang/tensorflow,caisq/tensorflow,zasdfgbnm/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,aselle/tensorflow,ghchinoy/tensorflow,tensorflow/tensorflow-pywrap_saved_model,allenlavoie/tensorflow,Bismarrck/tensorflow,Bismarrck/tensorflow,renyi533/tensorflow,kobejean/tensorflow,eaplatanios/tensorflow,aselle/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,dendisuhubdy/tensorflow,DavidNorman/tensorflow,petewarden/tensorflow,yongtang/tensorflow,eaplatanios/tensorflow,gojira/tensorflow,seanli9jan/tensorflow,allenlavoie/tensorflow,chemelnucfin/tensorflow,tensorflow/tensorflow-pywrap_saved_model,nolanliou/tensorflow,hehongliang/tensorflow,DavidNorman/tensorflow,seanli9jan/tensorflow,Intel-Corporation/tensorflow,dongjoon-hyun/tensorflow,Intel-Corporation/tensorflow,benoitsteiner/tensorflow-xsmm,gojira/tensorflow,hfp/tensorflow-xsmm,av8ramit/tensorflow,jalexvig/tensorflow,freedomtan/tensorflow,yanchen036/tensorflow,dongjoon-hyun/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,Xeralux/tensorflow,freedomtan/tensorflow,theflofly/tensorflow,caisq/tensorflow,jhseu/tensorflow,lukeiwanski/tensorflow,hfp/tensorflow-xsmm,paolodedios/tensorflow,theflofly/tensorflow,sarvex/tensorflow,DavidNorman/tensorflow,asimshankar/tensorflow,gojira/tensorflow,jbedorf/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Bismarrck/tensorflow,meteorcloudy/tensorflow,apark263/tensorflow,jbedorf/tensorflow,allenlavoie/tensorflow,sarvex/tensorflow,annarev/tensorflow,yongtang/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,alshedivat/tensorflow,ZhangXinNan/tensorflow,paolodedios/tensorflow,Intel-tensorflow/tensorflow,ppwwyyxx/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,tensorflow/tensorflow-pywrap_saved_model,davidzchen/tensorflow,frreiss/tensorflow-fred,freedomtan/tensorflow,Intel-tensorflow/tensorflow,ZhangXinNan/tensorflow,ageron/tensorflow,ravindrapanda/tensorflow,meteorcloudy/tensorflow,jhseu/tensorflow,ageron/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,gunan/tensorflow,renyi533/tensorflow,rabipanda/tensorflow,Xeralux/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,ageron/tensorflow,xodus7/tensorflow,paolodedios/tensorflow,aselle/tensorflow,karllessard/tensorflow,drpngx/tensorflow,jart/tensorflow,kobejean/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,Bismarrck/tensorflow,aselle/tensorflow,Xeralux/tensorflow,dendisuhubdy/tensorflow,adit-chandra/tensorflow,freedomtan/tensorflow,drpngx/tensorflow,ppwwyyxx/tensorflow,nburn42/tensorflow,snnn/tensorflow,arborh/tensorflow,hfp/tensorflow-xsmm,ppwwyyxx/tensorflow,kobejean/tensorflow,apark263/tensorflow,caisq/tensorflow,alshedivat/tensorflow,ZhangXinNan/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,aselle/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,nolanliou/tensorflow,nburn42/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,jart/tensorflow,manipopopo/tensorflow,benoitsteiner/tensorflow-xsmm,seanli9jan/tensorflow,allenlavoie/tensorflow,jbedorf/tensorflow,chemelnucfin/tensorflow,brchiu/tensorflow,gojira/tensorflow,kevin-coder/tensorflow-fork,tensorflow/tensorflow-pywrap_saved_model,jhseu/tensorflow,asimshankar/tensorflow,rabipanda/tensorflow,sarvex/tensorflow,jhseu/tensorflow,ageron/tensorflow,Xeralux/tensorflow,jendap/tensorflow,hfp/tensorflow-xsmm,aldian/tensorflow,Intel-Corporation/tensorflow,meteorcloudy/tensorflow,paolodedios/tensorflow,dancingdan/tensorflow,ZhangXinNan/tensorflow,adit-chandra/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,frreiss/tensorflow-fred,dancingdan/tensorflow,Xeralux/tensorflow,jalexvig/tensorflow,alsrgv/tensorflow,alshedivat/tensorflow,tensorflow/tensorflow-pywrap_saved_model,hehongliang/tensorflow,av8ramit/tensorflow,arborh/tensorflow,jart/tensorflow,seanli9jan/tensorflow,AnishShah/tensorflow,manipopopo/tensorflow,aselle/tensorflow,rabipanda/tensorflow,kevin-coder/tensorflow-fork,alshedivat/tensorflow,jhseu/tensorflow,jart/tensorflow,nburn42/tensorflow,ZhangXinNan/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,brchiu/tensorflow,theflofly/tensorflow,gunan/tensorflow,xodus7/tensorflow,gojira/tensorflow,gunan/tensorflow,gojira/tensorflow,kevin-coder/tensorflow-fork,annarev/tensorflow,allenlavoie/tensorflow,AnishShah/tensorflow,xodus7/tensorflow,adit-chandra/tensorflow,yanchen036/tensorflow,meteorcloudy/tensorflow,dendisuhubdy/tensorflow,xodus7/tensorflow,aselle/tensorflow,apark263/tensorflow,allenlavoie/tensorflow,alsrgv/tensorflow,petewarden/tensorflow