Skip to content

Commit 46bb3e2

Browse files
committed
Updated ckpt loading in adversarial_attack
1 parent d07c8d9 commit 46bb3e2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/thunder/tasks/adversarial_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def adversarial_attack(
9191
f"Checkpoint file not found at {linear_ckpt_path}. Please train a linear probe first."
9292
)
9393

94-
ckpt = torch.load(linear_ckpt_path)
94+
ckpt = torch.load(linear_ckpt_path, weights_only=True)
9595
state_dict = ckpt["task_specific_model"]
9696
out_features, in_features = state_dict["linear.weight"].shape
9797

0 commit comments

Comments
 (0)