Don't try to call cuMemAlloc with size 0.
Don't try to call cuMemAlloc with size 0.

This will result in a failure, so we can just immediately return nullptr.
The caller code currently already needs to accept nullptr as a valid result if
size == 0, and only treat it as an error if size > 0.
PiperOrigin-RevId: 234467182

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