pytorch / opacus

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

Fix the initialization function of "GradSampleModuleFastGradientClipping" #675

Closed HuanyuZhang closed 2 months ago

HuanyuZhang commented 2 months ago

Summary: GradSampleModuleFastGradientClipping does not correctly take strict and force_functorch in its initialization function. Made the fix to allow the change of the values of the two parameters.

Differential Revision: D62676700

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62676700

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62676700

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62676700

facebook-github-bot commented 2 months ago

This pull request was exported from Phabricator. Differential Revision: D62676700

facebook-github-bot commented 2 months ago

This pull request has been merged in pytorch/opacus@aea78b3912a5297cabd5f2afba924bdab00b1fad.