Skip to content

Commit 209a259

Browse files
arashwantensorflower-gardener
authored andcommitted
Internal change
PiperOrigin-RevId: 520504242
1 parent 00b830c commit 209a259

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

official/vision/tasks/maskrcnn.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def initialize(self, model: tf.keras.Model):
105105

106106
# Restoring checkpoint.
107107
if self.task_config.init_checkpoint_modules == 'all':
108-
ckpt = tf.train.Checkpoint(**model.checkpoint_items)
108+
ckpt = tf.train.Checkpoint(model=model)
109109
status = ckpt.read(ckpt_dir_or_file)
110110
status.expect_partial().assert_existing_objects_matched()
111111
else:

0 commit comments

Comments
 (0)