"docs/git@developer.sourcefind.cn:change/sglang.git" did not exist on "583d6af71b68a8b8464dac2d1c60d0cb5dd65738"
Commit cfdc930e authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Fix a bug when initializing the model with all modules.

PiperOrigin-RevId: 459611611
parent 331dcdf1
...@@ -85,7 +85,7 @@ class VideoClassificationTask(base_task.Task): ...@@ -85,7 +85,7 @@ class VideoClassificationTask(base_task.Task):
# Restoring checkpoint. # Restoring checkpoint.
if self.task_config.init_checkpoint_modules == 'all': if self.task_config.init_checkpoint_modules == 'all':
ckpt = tf.train.Checkpoint(**model.checkpoint_items) ckpt = tf.train.Checkpoint(model=model)
status = ckpt.read(ckpt_dir_or_file) status = ckpt.read(ckpt_dir_or_file)
status.expect_partial().assert_existing_objects_matched() status.expect_partial().assert_existing_objects_matched()
elif self.task_config.init_checkpoint_modules == 'backbone': elif self.task_config.init_checkpoint_modules == 'backbone':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment