Skip to content

Commit

Permalink
Fix the doctest due to numpy 2.0 (pytorch#654)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#654

Doctest fails due to numpy's upgrade into 2.0, which changes the way of printing.
astropy/astropy#15095

Differential Revision: D58873298
  • Loading branch information
HuanyuZhang authored and facebook-github-bot committed Jun 24, 2024
1 parent 3619619 commit 89c4212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opacus/accountants/analysis/rdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
... rdp += compute_rdp(q=q, noise_multiplier=sigma, steps=steps, orders=orders)
>>> epsilon, opt_order = get_privacy_spent(orders=orders, rdp=rdp, delta=1e-5)
>>> epsilon, opt_order # doctest: +NUMBER
>>> float(epsilon), int(opt_order) # doctest: +NUMBER
(0.336, 23)
"""
Expand Down

0 comments on commit 89c4212

Please sign in to comment.