Get rid of unwanted deprecation warning in optimizer v2.
Get rid of unwanted deprecation warning in optimizer v2.

Currently, optimizers need to access variable.constraint. Doing so raises a user-visible deprecation warning. As a result, every time an optimizer is used in TF 2.0, a deprecation warning is raised, which is not an acceptable user-facing behavior.

PiperOrigin-RevId: 263872933

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