Skip to content

Tensorflow 2 back end - #126

Merged
sweichwald merged 6 commits into
pymanopt:masterfrom
mshvartsman:tf2
Oct 28, 2021
Merged

sweichwald merged 6 commits into
pymanopt:masterfrom
mshvartsman:tf2

Conversation

@mshvartsman

Copy link
Copy Markdown
Contributor

This PR includes a TF2 eager back end, includes updates for tests and example. Note that there is no support for TF2.0 non-eager, though I think the tradeoff is worth it for modern TF support and graph-mode support can be added later.

As noted in the commit message, this work is done on my own time/equipment and not in my work capacity.

…k-end to support TF2 eager mode.

This contribution is done on my own time and my own equipment and not in my capacity of an employee of facebook.

Signed-off-by: Michael Shvartsman <m.shvartsman.work@gmail.com>
@coveralls

coveralls commented Oct 17, 2020 •

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.1%) to 86.322% when pulling 7f0595e on mshvartsman:tf2 into 6afbd55 on pymanopt:master.

@mshvartsman

Copy link
Copy Markdown
Contributor Author

The reduced coverage is on rejecting linesearch steps -- any way they could be related to the new changes, or is the behavior just stochastic somewhere?

@mshvartsman

Copy link
Copy Markdown
Contributor Author

Hi folks, is there any chance someone would review this? The last major release of TF1 was over a year ago and there will be no more, so the lack of TF2 support is making it problematic to use pymanopt without getting into dependency trouble with other packages relying on a current tensorflow.

@sweichwald

Copy link
Copy Markdown
Member

Hi and thanks a lot for the PR!
We are running behind with triage. From my side this is looking good. Since @nkoep was the main driving force behind the last major autodiff backend overhaul, it would be great to get input on this and whether it aligns with the intended future of the backend handling before we go ahead.
In the meantime and urgent cases, folks can pip-install this PR-version for TF2 (before it will eventually make it into main).

@mshvartsman

Copy link
Copy Markdown
Contributor Author

Hi folks, just following up on this again -- @nkoep do you think you could review and consider for merge? Thank you!

@Raph-AI

Raph-AI commented Aug 28, 2021 •

Copy link
Copy Markdown

Thank you for this @mshvartsman ! Works great with TF 2.3.0. Now I can perform the optimization on the GPU.

@Raph-AI Raph-AI mentioned this pull request Sep 2, 2021
@sweichwald

Copy link
Copy Markdown
Member

Thank you @mshvartsman for this TF2 back end and your patience! 👍

Merging this eases dependency conflicts and we should no more depend on TF1, which is well outdated by now.
I am merging this.

@sweichwald
sweichwald merged commit 15190d9 into pymanopt:master Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants