Skip to content

Commit d012b23

Browse files
Internal change
PiperOrigin-RevId: 397851196
1 parent 5bf90fb commit d012b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/vision/beta/tasks/image_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def initialize(self, model: tf.keras.Model):
6262

6363
# Restoring checkpoint.
6464
if self.task_config.init_checkpoint_modules == 'all':
65-
ckpt = tf.train.Checkpoint(**model.checkpoint_items)
65+
ckpt = tf.train.Checkpoint(model=model)
6666
status = ckpt.read(ckpt_dir_or_file)
6767
status.expect_partial().assert_existing_objects_matched()
6868
elif self.task_config.init_checkpoint_modules == 'backbone':

0 commit comments

Comments
 (0)