Skip to content

Commit

Permalink
Install tf-keras to avoid stable failure until the tf-agent stable is…
Browse files Browse the repository at this point in the history
… updated.

PiperOrigin-RevId: 593009210
Change-Id: Ibc7c212f64937edbf254873da16e239b67bd2c58
  • Loading branch information
esonghori authored and copybara-github committed Dec 22, 2023
1 parent f4d1bc0 commit 927c8df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ These commands install TF-Agents and the placement cost binary.
```shell
# Installs TF-Agents with stable versions of Reverb and TensorFlow 2.x.
$ pip install $TF_AGENTS_PIP_VERSION
$ pip install tf-keras
# Using keras-2
$ export TF_USE_LEGACY_KERAS=1
# Copies the placement cost binary to /usr/local/bin and makes it executable.
Expand Down Expand Up @@ -250,6 +251,7 @@ These commands install TF-Agents and the placement cost binary.
```shell
# Installs TF-Agents with stable versions of Reverb and TensorFlow 2.x.
$ pip install tf-agents-nightly[reverb]
$ pip install tf-keras
# Using keras-2
$ export TF_USE_LEGACY_KERAS=1
# Copies the placement cost binary to /usr/local/bin and makes it executable.
Expand Down
3 changes: 2 additions & 1 deletion tools/docker/ubuntu_circuit_training
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ RUN $python_version -mpip install pyunpack>=0.1.2 \
scipy>=1.1.0 \
numpy>=1.15.4 \
torch==1.13.1 \
shapely>=1.7.0
shapely>=1.7.0 \
tf-keras>=2.15.0

# Installs TF-Agents and Tensorflow along with tox and pytest to help verify the
# container via unit tests.
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ deps = pytest
tf-agents-nightly[reverb]
sortedcontainers
timeout-decorator>=0.5.0
tf-keras>=2.15.0
# Neded by DREAMPlace
pyunpack>=0.1.2
patool>=1.12
Expand All @@ -22,6 +23,7 @@ deps = pytest
tf-agents[reverb]
sortedcontainers
timeout-decorator>=0.5.0
tf-keras>=2.15.0
# Neded by DREAMPlace
pyunpack>=0.1.2
patool>=1.12
Expand Down

0 comments on commit 927c8df

Please sign in to comment.