Allow ResourceVariable to be written to TensorArray.
Allow ResourceVariable to be written to TensorArray.

This is similar to how graph behaves.

PiperOrigin-RevId: 205747377

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