Skip to content

Commit 8e98292

Browse files
author
Chris Elion
authored
Increase min supported tensorflow to 1.14.0 (#4411)
1 parent a8104e1 commit 8e98292

File tree

6 files changed

+12
-23
lines changed

6 files changed

+12
-23
lines changed

.circleci/config.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,14 @@ jobs:
2121
pip_constraints:
2222
type: string
2323
description: Constraints file that is passed to "pip install". We constraint older versions of libraries for older python runtime, in order to help ensure compatibility.
24-
enforce_onnx_conversion:
25-
type: integer
26-
default: 0
27-
description: Whether to raise an exception if ONNX models couldn't be saved.
2824
executor: << parameters.executor >>
2925
working_directory: ~/repo
3026

3127
# Run additional numpy checks on unit tests
3228
environment:
3329
TEST_ENFORCE_NUMPY_FLOAT32: 1
34-
TEST_ENFORCE_ONNX_CONVERSION: << parameters.enforce_onnx_conversion >>
30+
# Whether to raise an exception if ONNX models couldn't be saved.
31+
TEST_ENFORCE_ONNX_CONVERSION: 1
3532

3633
steps:
3734
- checkout
@@ -252,16 +249,8 @@ workflows:
252249
name: python_3.7.3
253250
executor: python373
254251
pyversion: 3.7.3
255-
# Test python 3.7 with the newest supported versions
252+
# Test python 3.7 with the newest supported versions of 1.x
256253
pip_constraints: test_constraints_max_tf1_version.txt
257-
# Make sure ONNX conversion passes here (recent version of tensorflow 1.x)
258-
enforce_onnx_conversion: 1
259-
- build_python:
260-
name: python_3.7.3+tf2
261-
executor: python373
262-
pyversion: 3.7.3
263-
# Test python 3.7 with the newest supported versions
264-
pip_constraints: test_constraints_max_tf2_version.txt
265254
- build_python:
266255
name: python_3.8.2+tf2.2
267256
executor: python382

com.unity.ml-agents/CHANGELOG.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ and this project adheres to
1717
- Update Barracuda to 1.0.2.
1818
- Enabled C# formatting using `dotnet-format`.
1919
#### ml-agents / ml-agents-envs / gym-unity (Python)
20+
- Experimental PyTorch support has been added. Use `--torch` when running `mlagents-learn`, or add
21+
`framework: pytorch` to your trainer configuration (under the behavior name) to enable it.
22+
Note that PyTorch 1.6.0 or greater should be installed to use this feature; see
23+
[the PyTorch website](https://pytorch.org/) for installation instructions. (#4335)
24+
- The minimum supported version of TensorFlow was increased to 1.14.0. (#4411)
2025

2126
### Bug Fixes
2227
#### com.unity.ml-agents (C#)
@@ -32,10 +37,6 @@ and this project adheres to
3237
- The interaction between EnvManager and TrainerController was changed; EnvManager.advance() was split into to stages,
3338
and TrainerController now uses the results from the first stage to handle new behavior names. This change speeds up
3439
Python training by approximately 5-10%. (#4259)
35-
- Experimental PyTorch support has been added. Use `--torch` when running `mlagents-learn`, or add
36-
`framework: pytorch` to your trainer configuration (under the behavior name) to enable it.
37-
Note that PyTorch 1.6.0 or greater should be installed to use this feature; see
38-
[the PyTorch website](https://pytorch.org/) for installation instructions. (#4335)
3940

4041
### Minor Changes
4142
#### com.unity.ml-agents (C#)

ml-agents/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run(self):
6363
"Pillow>=4.2.1",
6464
"protobuf>=3.6",
6565
"pyyaml>=3.1.0",
66-
"tensorflow>=1.7,<3.0",
66+
"tensorflow>=1.14,<3.0",
6767
"cattrs>=1.0.0",
6868
"attrs>=19.3.0",
6969
'pypiwin32==223;platform_system=="Windows"',

test_constraints_max_tf2_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# For projects with upper bounds, we should periodically update this list to the latest release version
33
grpcio>=1.23.0
44
numpy>=1.17.2
5-
tensorflow==2.2.0rc3
5+
tensorflow==2.3.0
66
h5py>=2.10.0

test_constraints_min_version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ grpcio==1.11.0
33
numpy==1.14.1
44
Pillow==4.2.1
55
protobuf==3.6
6-
tensorflow==1.7.0
6+
tensorflow==1.14.0
77
h5py==2.9.0

test_requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ pytest-xdist==1.34.0
66
# PyTorch tests are here for the time being, before they are used in the codebase.
77
torch>=1.5.0
88

9-
# onnx doesn't currently have a wheel for 3.8
10-
tf2onnx>=1.5.5;python_version<'3.8'
9+
tf2onnx>=1.5.5

0 commit comments

Comments
 (0)