pytorch / opacus

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

Per sample grad correctness util #532

Closed psolikov closed 1 year ago

psolikov commented 1 year ago

Types of changes

Motivation and Context / Related issue

Implementation of the utility described in https://github.com/pytorch/opacus/issues/484.

Refactored the code to avoid code duplicates.

How Has This Been Tested (if it applies)

Added the new utility as a test case for existing tests stored in tests.grad_samples.

Checklist

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@psolikov has updated the pull request. You must reimport the pull request before landing.

facebook-github-bot commented 1 year ago

@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot commented 1 year ago

@ffuuugor merged this pull request in pytorch/opacus@a0a31baacc98b5d43e514f034ab2ee65bade9d39.