We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d07c8d9 commit 46bb3e2Copy full SHA for 46bb3e2
1 file changed
src/thunder/tasks/adversarial_attack.py
@@ -91,7 +91,7 @@ def adversarial_attack(
91
f"Checkpoint file not found at {linear_ckpt_path}. Please train a linear probe first."
92
)
93
94
- ckpt = torch.load(linear_ckpt_path)
+ ckpt = torch.load(linear_ckpt_path, weights_only=True)
95
state_dict = ckpt["task_specific_model"]
96
out_features, in_features = state_dict["linear.weight"].shape
97
0 commit comments