Enable OwningRewritePatternList insert overload with parameter pack only when there is at least one template pattern type
Enable OwningRewritePatternList insert overload with parameter pack only when
there is at least one template pattern type

Also remove the other insert overload with pattern pointer as there are no existing users nor any potential known use-case.

PiperOrigin-RevId: 266842920

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