Fix use-after-invalidation for absl::raw_hash_set iterator
Fix use-after-invalidation for absl::raw_hash_set iterator

Removing an element from absl::raw_hash_set invalidates iterators that were
pointing to that element. Incrementing such an iterator is undefined behavior.

PiperOrigin-RevId: 288499624
Change-Id: I588901513b84a1ea3399fe508f112521fb07cbd0

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