Replace iter->second with partition_graph in DirectSession::Run
Replace iter->second with partition_graph in DirectSession::Run

This loop uses an iterator. It takes references to iter->first and iter->second right at the top of the loop and uses these references throughout, except for this line, which I've fixed.

PiperOrigin-RevId: 212805731

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