Fixed a bug in the AttrBuilder related experimental C APIs, where the string value `attr_name` passed into `TF_AttrBuilderSetType()` could get destroyed before a subsequent call to `TF_AttrBuilderCheckCanRunOnDevice()` on the same `builder`.
Fixed a bug in the AttrBuilder related experimental C APIs, where the string
value `attr_name` passed into `TF_AttrBuilderSetType()` could get destroyed
before a subsequent call to `TF_AttrBuilderCheckCanRunOnDevice()` on the same
`builder`.

That is a use-after-free error, since `builder` stores a string_view version of
`attr_name`, and uses it in the latter API call.

PiperOrigin-RevId: 223425447

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