Minor python change to remove doing unnecessary work in resource variables
Minor python change to remove doing unnecessary work in resource variables

PiperOrigin-RevId: 200735157

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