Add a utility function to Op that allows for checking if an operation has a specific trait.
Add a utility function to Op that allows for checking if an operation has a specific trait.

PiperOrigin-RevId: 251489498

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