Enhancement with deprecated_argument_lookup (#17527)
Enhancement with deprecated_argument_lookup (#17527)

* Enhancement with deprecated_argument_lookup

The tf.losses.cosine_distance deprecated dim and switched
to axis. This fix adds the enhancement of using
deprecated_argument_lookup, which is used in all other
arguments deprecations.

Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>

* Add missing import

Signed-off-by: Yong Tang <765086fe2e0c1f980161f127fec596800f327f62@outlook.com>

apark263/tensorflow,dancingdan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,caisq/tensorflow,brchiu/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,DavidNorman/tensorflow,dongjoon-hyun/tensorflow,girving/tensorflow,yanchen036/tensorflow,eaplatanios/tensorflow,aldian/tensorflow,frreiss/tensorflow-fred,nburn42/tensorflow,nburn42/tensorflow,gojira/tensorflow,jhseu/tensorflow,ghchinoy/tensorflow,eaplatanios/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,arborh/tensorflow,frreiss/tensorflow-fred,theflofly/tensorflow,ageron/tensorflow,freedomtan/tensorflow,hfp/tensorflow-xsmm,freedomtan/tensorflow,xzturn/tensorflow,eaplatanios/tensorflow,asimshankar/tensorflow,benoitsteiner/tensorflow-xsmm,manipopopo/tensorflow,benoitsteiner/tensorflow-xsmm,lukeiwanski/tensorflow,girving/tensorflow,gojira/tensorflow,meteorcloudy/tensorflow,chemelnucfin/tensorflow,karllessard/tensorflow,aam-at/tensorflow,asimshankar/tensorflow,paolodedios/tensorflow,freedomtan/tensorflow,benoitsteiner/tensorflow-xsmm,dancingdan/tensorflow,Intel-tensorflow/tensorflow,seanli9jan/tensorflow,xodus7/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,dancingdan/tensorflow,eaplatanios/tensorflow,kevin-coder/tensorflow-fork,aldian/tensorflow,AnishShah/tensorflow,xodus7/tensorflow,theflofly/tensorflow,freedomtan/tensorflow,apark263/tensorflow,caisq/tensorflow,gojira/tensorflow,jhseu/tensorflow,asimshankar/tensorflow,jhseu/tensorflow,karllessard/tensorflow,gunan/tensorflow,jalexvig/tensorflow,paolodedios/tensorflow,drpngx/tensorflow,paolodedios/tensorflow,frreiss/tensorflow-fred,ageron/tensorflow,dancingdan/tensorflow,ppwwyyxx/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-experimental_link_static_libraries_once,Bismarrck/tensorflow,jbedorf/tensorflow,gautam1858/tensorflow,DavidNorman/tensorflow,AnishShah/tensorflow,annarev/tensorflow,caisq/tensorflow,adit-chandra/tensorflow,yanchen036/tensorflow,drpngx/tensorflow,renyi533/tensorflow,jbedorf/tensorflow,davidzchen/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,sarvex/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,eaplatanios/tensorflow,renyi533/tensorflow,girving/tensorflow,hehongliang/tensorflow,lukeiwanski/tensorflow,chemelnucfin/tensorflow,cxxgtxy/tensorflow,apark263/tensorflow,jbedorf/tensorflow,ppwwyyxx/tensorflow,caisq/tensorflow,ZhangXinNan/tensorflow,apark263/tensorflow,aam-at/tensorflow,aselle/tensorflow,ghchinoy/tensorflow,petewarden/tensorflow,adit-chandra/tensorflow,ZhangXinNan/tensorflow,kevin-coder/tensorflow-fork,nburn42/tensorflow,alshedivat/tensorflow,xzturn/tensorflow,yanchen036/tensorflow,jendap/tensorflow,theflofly/tensorflow,adit-chandra/tensorflow,gautam1858/tensorflow,gunan/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,davidzchen/tensorflow,lukeiwanski/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,kevin-coder/tensorflow-fork,frreiss/tensorflow-fred,yongtang/tensorflow,girving/tensorflow,DavidNorman/tensorflow,freedomtan/tensorflow,alshedivat/tensorflow,alshedivat/tensorflow,xzturn/tensorflow,xodus7/tensorflow,DavidNorman/tensorflow,jalexvig/tensorflow,hfp/tensorflow-xsmm,sarvex/tensorflow,drpngx/tensorflow,asimshankar/tensorflow,Intel-Corporation/tensorflow,paolodedios/tensorflow,jhseu/tensorflow,kobejean/tensorflow,brchiu/tensorflow,xzturn/tensorflow,xzturn/tensorflow,lukeiwanski/tensorflow,dendisuhubdy/tensorflow,lukeiwanski/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,jart/tensorflow,alsrgv/tensorflow,ageron/tensorflow,yongtang/tensorflow,brchiu/tensorflow,freedomtan/tensorflow,kevin-coder/tensorflow-fork,ppwwyyxx/tensorflow,brchiu/tensorflow,arborh/tensorflow,dongjoon-hyun/tensorflow,caisq/tensorflow,kobejean/tensorflow,manipopopo/tensorflow,frreiss/tensorflow-fred,jendap/tensorflow,meteorcloudy/tensorflow,hehongliang/tensorflow,seanli9jan/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,cxxgtxy/tensorflow,AnishShah/tensorflow,dongjoon-hyun/tensorflow,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow-pywrap_saved_model,benoitsteiner/tensorflow-xsmm,tensorflow/tensorflow,AnishShah/tensorflow,manipopopo/tensorflow,kevin-coder/tensorflow-fork,girving/tensorflow,drpngx/tensorflow,jendap/tensorflow,DavidNorman/tensorflow,adit-chandra/tensorflow,renyi533/tensorflow,karllessard/tensorflow,dancingdan/tensorflow,Intel-tensorflow/tensorflow,alshedivat/tensorflow,yanchen036/tensorflow,AnishShah/tensorflow,asimshankar/tensorflow,yanchen036/tensorflow,gojira/tensorflow,apark263/tensorflow,karllessard/tensorflow,brchiu/tensorflow,alsrgv/tensorflow,gunan/tensorflow,annarev/tensorflow,Intel-Corporation/tensorflow,frreiss/tensorflow-fred,xzturn/tensorflow,dendisuhubdy/tensorflow,dancingdan/tensorflow,xzturn/tensorflow,AnishShah/tensorflow,jbedorf/tensorflow,jart/tensorflow,jart/tensorflow,nburn42/tensorflow,annarev/tensorflow,snnn/tensorflow,snnn/tensorflow,caisq/tensorflow,apark263/tensorflow,meteorcloudy/tensorflow,theflofly/tensorflow,jendap/tensorflow,aam-at/tensorflow,benoitsteiner/tensorflow-xsmm,seanli9jan/tensorflow,benoitsteiner/tensorflow-xsmm,jart/tensorflow,dongjoon-hyun/tensorflow,hfp/tensorflow-xsmm,ZhangXinNan/tensorflow,cxxgtxy/tensorflow,dendisuhubdy/tensorflow,snnn/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alshedivat/tensorflow,nburn42/tensorflow,davidzchen/tensorflow,arborh/tensorflow,Intel-Corporation/tensorflow,seanli9jan/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,tensorflow/tensorflow-pywrap_saved_model,adit-chandra/tensorflow,eaplatanios/tensorflow,gojira/tensorflow,Intel-Corporation/tensorflow,nburn42/tensorflow,dancingdan/tensorflow,ZhangXinNan/tensorflow,gojira/tensorflow,yongtang/tensorflow,manipopopo/tensorflow,xodus7/tensorflow,aam-at/tensorflow,ZhangXinNan/tensorflow,jalexvig/tensorflow,AnishShah/tensorflow,snnn/tensorflow,asimshankar/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,kevin-coder/tensorflow-fork,arborh/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,yanchen036/tensorflow,kevin-coder/tensorflow-fork,karllessard/tensorflow,dendisuhubdy/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,girving/tensorflow,snnn/tensorflow,gautam1858/tensorflow,gunan/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow,karllessard/tensorflow,snnn/tensorflow,sarvex/tensorflow,manipopopo/tensorflow,petewarden/tensorflow,asimshankar/tensorflow,ZhangXinNan/tensorflow,aselle/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,caisq/tensorflow,ageron/tensorflow,snnn/tensorflow,adit-chandra/tensorflow,dongjoon-hyun/tensorflow,eaplatanios/tensorflow,xodus7/tensorflow,Bismarrck/tensorflow,annarev/tensorflow,jendap/tensorflow,yongtang/tensorflow,xzturn/tensorflow,tensorflow/tensorflow,girving/tensorflow,ghchinoy/tensorflow,dongjoon-hyun/tensorflow,DavidNorman/tensorflow,ZhangXinNan/tensorflow,freedomtan/tensorflow,nburn42/tensorflow,nburn42/tensorflow,paolodedios/tensorflow,jalexvig/tensorflow,drpngx/tensorflow,kobejean/tensorflow,eaplatanios/tensorflow,annarev/tensorflow,seanli9jan/tensorflow,paolodedios/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,ageron/tensorflow,hehongliang/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aam-at/tensorflow,brchiu/tensorflow,tensorflow/tensorflow-pywrap_saved_model,tensorflow/tensorflow-pywrap_saved_model,cxxgtxy/tensorflow,jhseu/tensorflow,meteorcloudy/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,manipopopo/tensorflow,drpngx/tensorflow,jbedorf/tensorflow,Intel-tensorflow/tensorflow,alsrgv/tensorflow,snnn/tensorflow,annarev/tensorflow,petewarden/tensorflow,davidzchen/tensorflow,ppwwyyxx/tensorflow,meteorcloudy/tensorflow,ghchinoy/tensorflow,meteorcloudy/tensorflow,Bismarrck/tensorflow,manipopopo/tensorflow,gunan/tensorflow,paolodedios/tensorflow,benoitsteiner/tensorflow-xsmm,benoitsteiner/tensorflow-xsmm,cxxgtxy/tensorflow,gautam1858/tensorflow,freedomtan/tensorflow,asimshankar/tensorflow,kevin-coder/tensorflow-fork,yongtang/tensorflow,kobejean/tensorflow,ageron/tensorflow,dendisuhubdy/tensorflow,Intel-Corporation/tensorflow,theflofly/tensorflow,ghchinoy/tensorflow,chemelnucfin/tensorflow,kobejean/tensorflow,jalexvig/tensorflow,apark263/tensorflow,eaplatanios/tensorflow,jbedorf/tensorflow,karllessard/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,renyi533/tensorflow,jart/tensorflow,lukeiwanski/tensorflow,aldian/tensorflow,dancingdan/tensorflow,frreiss/tensorflow-fred,tensorflow/tensorflow,aselle/tensorflow,sarvex/tensorflow,aam-at/tensorflow,gojira/tensorflow,xodus7/tensorflow,paolodedios/tensorflow,girving/tensorflow,adit-chandra/tensorflow,lukeiwanski/tensorflow,jalexvig/tensorflow,annarev/tensorflow,cxxgtxy/tensorflow,jbedorf/tensorflow,lukeiwanski/tensorflow,kobejean/tensorflow,yongtang/tensorflow,tensorflow/tensorflow,aselle/tensorflow,davidzchen/tensorflow,kobejean/tensorflow,theflofly/tensorflow,gunan/tensorflow,seanli9jan/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,Intel-tensorflow/tensorflow,tensorflow/tensorflow,freedomtan/tensorflow,brchiu/tensorflow,sarvex/tensorflow,renyi533/tensorflow,theflofly/tensorflow,chemelnucfin/tensorflow,gunan/tensorflow,yanchen036/tensorflow,renyi533/tensorflow,annarev/tensorflow,tensorflow/tensorflow-pywrap_saved_model,chemelnucfin/tensorflow,caisq/tensorflow,AnishShah/tensorflow,hfp/tensorflow-xsmm,Intel-tensorflow/tensorflow,jart/tensorflow,AnishShah/tensorflow,drpngx/tensorflow,theflofly/tensorflow,DavidNorman/tensorflow,yanchen036/tensorflow,aam-at/tensorflow,DavidNorman/tensorflow,alshedivat/tensorflow,manipopopo/tensorflow,freedomtan/tensorflow,jhseu/tensorflow,xodus7/tensorflow,sarvex/tensorflow,benoitsteiner/tensorflow-xsmm,karllessard/tensorflow,jhseu/tensorflow,hehongliang/tensorflow,davidzchen/tensorflow,Bismarrck/tensorflow,jbedorf/tensorflow,jalexvig/tensorflow,DavidNorman/tensorflow,eaplatanios/tensorflow,arborh/tensorflow,aselle/tensorflow,ageron/tensorflow,petewarden/tensorflow,aam-at/tensorflow,arborh/tensorflow,Bismarrck/tensorflow,aselle/tensorflow,brchiu/tensorflow,jendap/tensorflow,ghchinoy/tensorflow,gunan/tensorflow,gunan/tensorflow,adit-chandra/tensorflow,annarev/tensorflow,DavidNorman/tensorflow,kevin-coder/tensorflow-fork,dongjoon-hyun/tensorflow,nburn42/tensorflow,aam-at/tensorflow,alsrgv/tensorflow,ghchinoy/tensorflow,meteorcloudy/tensorflow,aam-at/tensorflow,kobejean/tensorflow,jhseu/tensorflow,xodus7/tensorflow,aselle/tensorflow,aselle/tensorflow,ZhangXinNan/tensorflow,dendisuhubdy/tensorflow,Bismarrck/tensorflow,dancingdan/tensorflow,chemelnucfin/tensorflow,Bismarrck/tensorflow,tensorflow/tensorflow-pywrap_saved_model,petewarden/tensorflow,hehongliang/tensorflow,adit-chandra/tensorflow,ageron/tensorflow,Bismarrck/tensorflow,jalexvig/tensorflow,alshedivat/tensorflow,asimshankar/tensorflow,dancingdan/tensorflow,aldian/tensorflow,frreiss/tensorflow-fred,ppwwyyxx/tensorflow,chemelnucfin/tensorflow,jart/tensorflow,hfp/tensorflow-xsmm,tensorflow/tensorflow,ghchinoy/tensorflow,dendisuhubdy/tensorflow,ageron/tensorflow,cxxgtxy/tensorflow,eaplatanios/tensorflow,dendisuhubdy/tensorflow,Intel-Corporation/tensorflow,lukeiwanski/tensorflow,apark263/tensorflow,gautam1858/tensorflow,xzturn/tensorflow,davidzchen/tensorflow,petewarden/tensorflow,ppwwyyxx/tensorflow,jendap/tensorflow,hfp/tensorflow-xsmm,caisq/tensorflow,ppwwyyxx/tensorflow,kobejean/tensorflow,freedomtan/tensorflow,arborh/tensorflow,xodus7/tensorflow,DavidNorman/tensorflow,gunan/tensorflow,ZhangXinNan/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow,aldian/tensorflow,paolodedios/tensorflow,chemelnucfin/tensorflow,sarvex/tensorflow,yongtang/tensorflow,xodus7/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,xzturn/tensorflow,gunan/tensorflow,alsrgv/tensorflow,alsrgv/tensorflow,karllessard/tensorflow,theflofly/tensorflow,girving/tensorflow,Intel-tensorflow/tensorflow,dongjoon-hyun/tensorflow,adit-chandra/tensorflow,hfp/tensorflow-xsmm,annarev/tensorflow,Intel-tensorflow/tensorflow,renyi533/tensorflow,alsrgv/tensorflow,chemelnucfin/tensorflow,meteorcloudy/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,alsrgv/tensorflow,yongtang/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,arborh/tensorflow,jbedorf/tensorflow,gojira/tensorflow,davidzchen/tensorflow,frreiss/tensorflow-fred,brchiu/tensorflow,hfp/tensorflow-xsmm,petewarden/tensorflow,hfp/tensorflow-xsmm,karllessard/tensorflow,drpngx/tensorflow,jhseu/tensorflow,kevin-coder/tensorflow-fork,AnishShah/tensorflow,chemelnucfin/tensorflow,ghchinoy/tensorflow,lukeiwanski/tensorflow,alsrgv/tensorflow,arborh/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,karllessard/tensorflow,nburn42/tensorflow,caisq/tensorflow,renyi533/tensorflow,alshedivat/tensorflow,drpngx/tensorflow,nburn42/tensorflow,alsrgv/tensorflow,renyi533/tensorflow,snnn/tensorflow,jhseu/tensorflow,jalexvig/tensorflow,dendisuhubdy/tensorflow,drpngx/tensorflow,seanli9jan/tensorflow,jendap/tensorflow,dendisuhubdy/tensorflow,jbedorf/tensorflow,manipopopo/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,snnn/tensorflow,renyi533/tensorflow,jalexvig/tensorflow,dongjoon-hyun/tensorflow,adit-chandra/tensorflow,tensorflow/tensorflow-pywrap_tf_optimizer,aldian/tensorflow,aldian/tensorflow,ageron/tensorflow,theflofly/tensorflow,Intel-Corporation/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Bismarrck/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,arborh/tensorflow,tensorflow/tensorflow-pywrap_saved_model,seanli9jan/tensorflow,aselle/tensorflow,hfp/tensorflow-xsmm,jalexvig/tensorflow,ageron/tensorflow,ghchinoy/tensorflow,ppwwyyxx/tensorflow,brchiu/tensorflow,jbedorf/tensorflow,aam-at/tensorflow,gunan/tensorflow,ppwwyyxx/tensorflow,yongtang/tensorflow,aselle/tensorflow,arborh/tensorflow,snnn/tensorflow,alsrgv/tensorflow,gojira/tensorflow,hehongliang/tensorflow,meteorcloudy/tensorflow,apark263/tensorflow,jart/tensorflow,theflofly/tensorflow,Intel-tensorflow/tensorflow,paolodedios/tensorflow,ZhangXinNan/tensorflow,aldian/tensorflow,yongtang/tensorflow,Intel-tensorflow/tensorflow,gautam1858/tensorflow,sarvex/tensorflow,gautam1858/tensorflow,tensorflow/tensorflow-pywrap_saved_model,Bismarrck/tensorflow,jart/tensorflow,alsrgv/tensorflow,yongtang/tensorflow,chemelnucfin/tensorflow,Bismarrck/tensorflow,aselle/tensorflow,Intel-tensorflow/tensorflow,jhseu/tensorflow,renyi533/tensorflow,gojira/tensorflow,jendap/tensorflow,frreiss/tensorflow-fred,benoitsteiner/tensorflow-xsmm,hehongliang/tensorflow,davidzchen/tensorflow,DavidNorman/tensorflow,kobejean/tensorflow,gautam1858/tensorflow,brchiu/tensorflow,asimshankar/tensorflow,aam-at/tensorflow,apark263/tensorflow,kevin-coder/tensorflow-fork,alshedivat/tensorflow,dongjoon-hyun/tensorflow,apark263/tensorflow,girving/tensorflow,arborh/tensorflow,ageron/tensorflow,hfp/tensorflow-xsmm,ghchinoy/tensorflow,adit-chandra/tensorflow,chemelnucfin/tensorflow,paolodedios/tensorflow,AnishShah/tensorflow,petewarden/tensorflow,tensorflow/tensorflow,annarev/tensorflow,seanli9jan/tensorflow,seanli9jan/tensorflow,ZhangXinNan/tensorflow,tensorflow/tensorflow-experimental_link_static_libraries_once,theflofly/tensorflow,gojira/tensorflow,tensorflow/tensorflow,kobejean/tensorflow,davidzchen/tensorflow,jart/tensorflow,cxxgtxy/tensorflow,gautam1858/tensorflow,dongjoon-hyun/tensorflow,jbedorf/tensorflow,renyi533/tensorflow,Intel-tensorflow/tensorflow,xzturn/tensorflow,ppwwyyxx/tensorflow,girving/tensorflow,xodus7/tensorflow