Torchlira: remove secure mode
This commit is contained in:
parent
fe7fcb2761
commit
c7eee3cdc2
1 changed files with 1 additions and 2 deletions
|
@ -115,7 +115,7 @@ def run():
|
|||
optim = torch.optim.SGD(m.parameters(), lr=args.lr, momentum=0.9, weight_decay=5e-4)
|
||||
sched = torch.optim.lr_scheduler.CosineAnnealingLR(optim, T_max=args.epochs)
|
||||
|
||||
privacy_engine = PrivacyEngine(accountant='rdp', secure_mod=True)
|
||||
privacy_engine = PrivacyEngine()
|
||||
m, optim, train_dl = privacy_engine.make_private_with_epsilon(
|
||||
module=m,
|
||||
optimizer=optim,
|
||||
|
@ -135,7 +135,6 @@ def run():
|
|||
max_physical_batch_size=1000,
|
||||
optimizer=optim
|
||||
) as memory_safe_data_loader:
|
||||
|
||||
for i in tqdm(range(args.epochs)):
|
||||
m.train()
|
||||
loss_total = 0
|
||||
|
|
Loading…
Reference in a new issue