Add checks that the Allocate function returned successfully.
Add checks that the Allocate function returned successfully.

PiperOrigin-RevId: 306737078
Change-Id: I74abe5b6db04ed850e98117d32c6be3aa06c0211

freedomtan/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,freedomtan/tensorflow,gautam1858/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,aam-at/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,davidzchen/tensorflow,karllessard/tensorflow,gautam1858/tensorflow,annarev/tensorflow,gunan/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow,gunan/tensorflow,paolodedios/tensorflow,yongtang/tensorflow,karllessard/tensorflow,annarev/tensorflow,paolodedios/tensorflow,davidzchen/tensorflow,gunan/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_saved_model,karllessard/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,paolodedios/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-tensorflow/tensorflow,aldian/tensorflow,gunan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,paolodedios/tensorflow,karllessard/tensorflow,sarvex/tensorflow,frreiss/tensorflow-fred,aam-at/tensorflow,petewarden/tensorflow,gunan/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-experimental_link_static_libraries_once,Intel-Corporation/tensorflow,annarev/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,aam-at/tensorflow,tensorflow/tensorflow,annarev/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,freedomtan/tensorflow,sarvex/tensorflow,davidzchen/tensorflow,annarev/tensorflow,paolodedios/tensorflow,cxxgtxy/tensorflow,karllessard/tensorflow,freedomtan/tensorflow,tensorflow/tensorflow-pywrap_saved_model,yongtang/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,gunan/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,sarvex/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,aam-at/tensorflow,gautam1858/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow,paolodedios/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,sarvex/tensorflow,karllessard/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,gautam1858/tensorflow,yongtang/tensorflow,freedomtan/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,gunan/tensorflow,annarev/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow,gautam1858/tensorflow,petewarden/tensorflow,aldian/tensorflow,Intel-Corporation/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,frreiss/tensorflow-fred,freedomtan/tensorflow,freedomtan/tensorflow,freedomtan/tensorflow,gunan/tensorflow,tensorflow/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,freedomtan/tensorflow,cxxgtxy/tensorflow,gunan/tensorflow,aam-at/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,gautam1858/tensorflow,cxxgtxy/tensorflow,cxxgtxy/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,paolodedios/tensorflow,aam-at/tensorflow,aam-at/tensorflow,karllessard/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,cxxgtxy/tensorflow,aldian/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,aldian/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,aldian/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,gunan/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,petewarden/tensorflow,annarev/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,davidzchen/tensorflow,annarev/tensorflow,karllessard/tensorflow,petewarden/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,cxxgtxy/tensorflow,Intel-Corporation/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,davidzchen/tensorflow,annarev/tensorflow,frreiss/tensorflow-fred,gunan/tensorflow,yongtang/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,paolodedios/tensorflow,petewarden/tensorflow,paolodedios/tensorflow,gautam1858/tensorflow,karllessard/tensorflow,yongtang/tensorflow,yongtang/tensorflow,Intel-Corporation/tensorflow,annarev/tensorflow,yongtang/tensorflow,davidzchen/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,karllessard/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,Intel-tensorflow/tensorflow,tensorflow/tensorflow-pywrap_saved_model,freedomtan/tensorflow,aldian/tensorflow