Closed alexandresablayrolles closed 1 year ago
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@ffuuugor also, any reason we have 'rdp' as default accoutant in get_noise_multiplier and not 'prv'?
@ffuuugor also, any reason we have 'rdp' as default accoutant in get_noise_multiplier and not 'prv'?
purely historical, I think we just didn't update all the default values when we added prv
@ffuuugor merged this pull request in pytorch/opacus@ae44a786d3a104393e961292eee9af2028f20fa8.
Change definition of
z = np.log((np.exp(t) + q - 1) / q)
toz = np.log(np.where(t > np.log(1 - q), (np.exp(t) + q - 1) / q, 1))
to avoid userwarning in PRV.