Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install dependencies for dp-accounting manually. #375

Merged
merged 1 commit into from
Jul 18, 2022
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions requirements/minimum-requirements-dp-accounting.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
absl-py>=1.0.0
attrs>=21.4.0
mpmath>=1.2.1
numpy>=1.21.4
scipy>=1.7.1
1 change: 0 additions & 1 deletion requirements/requirements-examples.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
dm-haiku>=0.0.3
tensorflow-datasets>=4.2.0
tensorflow>=2.4.0
dp-accounting>=0.1.0
8 changes: 8 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ pip install -r requirements/requirements.txt
pip install -r requirements/requirements-test.txt
pip install -r requirements/requirements-examples.txt

# Dp-accounting specifies exact minor versions as requirements which sometimes
# become incompatible with other libraries optax needs. We therefore install
# dependencies for dp-accounting manually.
# TODO(b/239416992): Remove this workaround if dp-accounting switches to minimum
# version requirements.
pip install -r requirements/minimum-requirements-dp-accounting.txt
pip install "dp-accounting>=0.1.1" --no-deps

# Ensure optax was not installed by one of the dependencies above,
# since if it is, the tests below will be run against that version instead of
# the branch build.
Expand Down