If the config fails to be saved, restore models as revived models.
If the config fails to be saved, restore models as revived models.

Fixes //third_party/py/telluride_decoding:infer_decoder_test

PiperOrigin-RevId: 290317017
Change-Id: I8da692a17a871998cc4e4ab38d73df4a525096ff

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