Update TF_ApiDefMapGet to return nullptr if there is an error.
Update TF_ApiDefMapGet to return nullptr if there is an error.

Previously it would return an allocated buffer, even if there was an error and the buffer was not usable. This could cause memory leaks if the caller did not manually delete the buffer.

Because TF_DeleteBuffer has been updated to be safe to call on nullptr, it's still OK if callers attempt to delete this nullptr.

PiperOrigin-RevId: 205858542

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