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

support newer versions of tensorflow (2.1+) #3830

Merged
merged 4 commits into from
Apr 24, 2020

Conversation

chriselion
Copy link
Contributor

@chriselion chriselion commented Apr 23, 2020

Proposed change(s)

Tests with tensorflow 2.1 and 2.2 release candidates look good. We need to support 2.2 in order to support python3.8 as well.

This PR raises the tensorflow version range. I originally intended to test python3.8 here too, but there were some conflicts with onnx that I'll have to try to resolve in another PR.

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

tensorflow/tensorflow#33374

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@chriselion
Copy link
Contributor Author

ERROR: Could not find a version that satisfies the requirement tensorflow>=2.0.0 (from -c test_constraints_max_tf2_version.txt (line 5)) (from versions: 2.2.0rc1, 2.2.0rc2, 2.2.0rc3)
ERROR: No matching distribution found for tensorflow>=2.0.0 (from -c test_constraints_max_tf2_version.txt (line 5))

Apparently 2.2.0rc1 is not > 2.0.0

@chriselion chriselion changed the title support tf2.2 and python3.8 support tf2.2 Apr 23, 2020
@@ -61,7 +62,7 @@ def run(self):
"Pillow>=4.2.1",
"protobuf>=3.6",
"pyyaml",
"tensorflow>=1.7,<2.1",
"tensorflow>=1.7,<3.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did have to add six>=1.12.0 to setup.py for tf>2.1.0

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, I'm not sure what to do about this. pip should be able to figure it out; it's not really our requirement, just a transitive one.

* increase gail visual ppo steps

* increase to 2000

* tune steps down to 750
@chriselion chriselion changed the title support tf2.2 support newer versions of tensorflow (2.1+) Apr 23, 2020
@chriselion chriselion merged commit 16f7bdb into master Apr 24, 2020
@delete-merged-branch delete-merged-branch bot deleted the support-newer-tensorflow branch April 24, 2020 00:12
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants