Support scoped_allocator_ops for renamed device.
Support scoped_allocator_ops for renamed device.

This fixes #22274.

Signed-off-by: Bairen Yi <442ca6ae4fc71d92d014371455a9032c4a250bed@connect.ust.hk>

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