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

Handle python versions for TensorFlow #1574

Merged
merged 4 commits into from
Dec 9, 2021
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
2 changes: 2 additions & 0 deletions .github/workflows/actions/run-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ runs:
shell: bash
run: |
python -m pip install --upgrade pip setuptools wheel
sudo apt-get update
sudo apt-get install -y build-essential libpython3.6 libpython3.7
pip install tox

- name: Run ${{ inputs.test-kind }} tests ('${{ inputs.test-marker }}')
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
- name: Install dependencies (tox)
run: |
python -m pip install --upgrade pip setuptools wheel
sudo apt-get update
sudo apt-get install -y build-essential libpython3.6 libpython3.7
pip install tox

- name: Run flake8
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pr-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:

- name: Install dependencies (tox)
run: |
sudo apt-get update
sudo apt-get install -y build-essential libpython3.6 libpython3.7
python -m pip install --upgrade pip setuptools wheel
pip install tox

Expand Down
9 changes: 4 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
version += ".post" + str(int(time.time()))

install_requires = [
"numpy>=1.19", # 1.19 required by tensorflow
"numpy>=1.19", # 1.19 required by tensorflow 2.6
"pandas>1.0.3,<2",
"scipy>=1.0.0,<2",
"tqdm>=4.31.1,<5",
Expand Down Expand Up @@ -66,10 +66,9 @@
],
"gpu": [
"nvidia-ml-py3>=7.352.0",
"tensorflow~=2.6.1", # compiled with CUDA 11.2, cudnn 8.1
"tensorflow-estimator==2.6",
"tensorboard==2.6",
"keras==2.6",
# TensorFlow compiled with CUDA 11.2, cudnn 8.1
"tensorflow~=2.6.1;python_version=='3.6'",
"tensorflow~=2.7.0;python_version>='3.7'",
"tf-slim>=1.1.0",
"torch>=1.8", # for CUDA 11 support
"fastai>=1.0.46,<2",
Expand Down