Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eval_sde_adv_bpda.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def eval_bpda(args, config, model, x_val, y_val, adv_batch_size, log_dir):

# ------------------ apply the attack to resnet ------------------
print(f'apply the bpda attack to resnet...')
resnet_bpda = ResNet_Adv_Model(args, config)
resnet_bpda = ResNet_Adv_Model(args, config).eval()
if ngpus > 1:
resnet_bpda = torch.nn.DataParallel(resnet_bpda)

Expand Down