Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
change how we access accountant history in GDP
Summary: Resolves #535

Differential Revision: D41229566

fbshipit-source-id: 098b18639c701c0a9c5f04e9072bb06440f6b4e4
  • Loading branch information
Ashkan Yousefpour authored and facebook-github-bot committed Nov 11, 2022
commit 57f052bb518047dc2d71ffde67a79d08a5e9c176
2 changes: 1 addition & 1 deletion opacus/accountants/gdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_epsilon(self, delta: float, poisson: bool = True) -> float:
if poisson
else privacy_analysis.compute_eps_uniform
)
noise_multiplier, sample_rate, num_steps = self.history.pop()
noise_multiplier, sample_rate, num_steps = self.history[-1]
return compute_eps(
steps=num_steps,
noise_multiplier=noise_multiplier,
Expand Down