Make betainc derivative more numerically stable by using log1p (and handling NaN's in the case when a = 1 or b = 1).
Make betainc derivative more numerically stable by using log1p (and handling NaN's in the case when a = 1 or b = 1).

PiperOrigin-RevId: 289918587
Change-Id: I266fd10c0e34ad30291d061636926c945fe0f824

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