pytorch / opacus

Training PyTorch models with differential privacy
https://opacus.ai
Apache License 2.0
1.65k stars 328 forks source link

Privacy computation script throws error due to lacking keyword arguments #564

Closed gkaissis closed 1 year ago

gkaissis commented 1 year ago

It seems that the compute privacy script (https://github.com/pytorch/opacus/blob/main/opacus/scripts/compute_dp_sgd_privacy.py) was not updated with the keyword-only argument syntax so it throws an error from https://github.com/pytorch/opacus/blob/main/opacus/accountants/analysis/rdp.py 263 and 290 because they only accept keyword args.

alexandresablayrolles commented 1 year ago

Closing the issue as the PR has been merged.