Skip to content

Commit 9918515

Browse files
authored
Support tensorflow>=2.5, pytorch>=1.9 (#140)
* Light refactoring of test_tensorflow_keras_models.py * Removed (almost) all tensorflow.python imports from test_tensorflow_keras_models.py * Removed as many as possible tensorflow.python imports from tensorflow_keras.py * Add compatibility layer for tensorflow<->keras to support tensorflow>=2.6 * Require tensorflow>=2.5 and torch>=1.9
1 parent 2b6bb6a commit 9918515

File tree

7 files changed

+150
-175
lines changed

7 files changed

+150
-175
lines changed

.github/workflows/ci.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
ml-deps:
15-
- "torch==1.8.1+cpu tensorflow-cpu==2.4.4"
1615
- "torch==1.9.1+cpu tensorflow-cpu==2.5.3"
17-
- "torch==1.10.2+cpu tensorflow-cpu==2.4.4"
18-
- "torch==1.11.0+cpu tensorflow-cpu==2.4.4"
19-
# remove the previous two lines and uncomment the next two after 2.6+ support
20-
# - "torch==1.10.2+cpu tensorflow-cpu==2.6.3"
21-
# - "torch==1.11.0+cpu tensorflow-cpu==2.7.1"
16+
- "torch==1.10.2+cpu tensorflow-cpu==2.6.3"
17+
- "torch==1.11.0+cpu tensorflow-cpu==2.7.1"
2218

2319
env:
2420
run_coverage: ${{ github.ref == 'refs/heads/master' }}

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import setuptools
22

3-
tensorflow = ["tensorflow>=2.4.1,<2.6"]
4-
pytorch = ["torch>=1.8.1"]
3+
tensorflow = ["tensorflow>=2.5"]
4+
pytorch = ["torch>=1.9"]
55
sklearn = ["scikit-learn>=1.0"]
66
cloud = ["tiledb-cloud"]
77
full = sorted({"torchvision", *tensorflow, *pytorch, *sklearn, *cloud})

0 commit comments

Comments
 (0)