Reset the TF session before initializing variables.
Reset the TF session before initializing variables.

When there are multiple trainer jobs, one of the jobs may fail and cause the executor to be restarted. In this case, we need to delete all variables on all trainer jobs by sess.reset() so all jobs' variables can be reloaded from a consistent checkpoint.

PiperOrigin-RevId: 338276903

tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo,tensorflow/lingvo