Safety vulnerability ID: 42822
The information on this page was manually curated by our Cybersecurity Intelligence Team.
[This advisory has been limited. Please create a free account to view the full advisory.]
Latest version: 1.5.3
Train PyTorch models with Differential Privacy
[This affected versions has been limited. Please create a free account to view the full affected versions.]
[This fixed versions has been limited. Please create a free account to view the full fixed versions.]
This version introduces a **mildly-breaking change**: the privacy engine will now support sampling with variable batch size, just like in the Abadi et al. paper. To accommodate this feature, we have made `batch_size` a kwarg (no longer positional). We are also enforcing that all kwargs must not be specified positionally. If you had code that passed kwargs positionally, you will find an error (which will be very simple to fix).
New features
* Enforce kwargs to Privacy Engine (136).
* Fix batch construction and privacy engine (128). (thanks ConstanceBeguier!)
* Compute required sigma to reach (epsilon, delta) budget (126)
* Friendly user message for unused parameters (118).
* Print helpful message when models are not in train mode (113)
Bug fixes
* Now the Opacus package has a `__version__` attribute.
* Fix immer security issue, fix website errors
* Updated setup.py version requirements to support 3.6.8 for Windows (108) (thanks madhavajay!)
Miscellaneous
* Rewrote the grad_sample tests to use Hypothesis (125). (thanks touqir14!)
Scan your Python project for dependency vulnerabilities in two minutes
Scan your application