Fix for the broken `--config=rocm` build
Fix for the broken `--config=rocm` build

The --config=rocm build was broken by the merge for PR #26840

This commit backs out the ROCm support in the file avgpooling_op.cc (added by the above PR). This is because the the template instantiations required for GPU support of the average pooling operator (which are in avgpooling_op_gpu.cu.cc) also need to be enabled for ROCm at the same time (as the code in avgpooling_op.cc) in order to avoid link errors with the `--config=rocm` build.  Enabling ROCm support for the code in avgpooling_op_gpu.cu.cc requires other PRs (the set spwaned from PR #28343) to be merged first. Once those PRs are merged, we will file another PR to re-enable ROCm support in the avgpooling*.cc files.

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