Skip to content

Commit 482784a

Browse files
rachellj218tensorflower-gardener
authored andcommitted
Internal change
PiperOrigin-RevId: 273233857
1 parent 7acce35 commit 482784a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/modeling/model_training_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def run_customized_training_loop(
207207
'Checkpoint file %s found and restoring from '
208208
'initial checkpoint for core model.', init_checkpoint)
209209
checkpoint = tf.train.Checkpoint(model=sub_model)
210-
checkpoint.restore(init_checkpoint).assert_consumed()
210+
checkpoint.restore(init_checkpoint).assert_existing_objects_matched()
211211
logging.info('Loading from checkpoint file completed')
212212

213213
train_loss_metric = tf.keras.metrics.Mean(

0 commit comments

Comments
 (0)