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

Modifying to work for tensorflow 2.0 #231

Open
DAMO238 opened this issue Feb 20, 2020 · 4 comments
Open

Modifying to work for tensorflow 2.0 #231

DAMO238 opened this issue Feb 20, 2020 · 4 comments

Comments

@DAMO238
Copy link

DAMO238 commented Feb 20, 2020

Since I am running Arch, it is an absolute pain to deal with older versions of software. Therefore, I want to update this to tensorflow 2.0. The biggest problem is in the model.py script, since it relies on tensorflow.contrib which no longer exists (even in tensorflow.compat.v1). How can I easily modify this script to make this work with the latest and greatest tensorflow?

@DaveXanatos
Copy link

Having same issue with tensorflow.contrib. Running TF 2.1 on Debian (Raspbian) Buster. I hope this can be addressed soon.

@IveJ
Copy link

IveJ commented Feb 21, 2020 via email

@shivangkhajuria
Copy link

Has someone found any way to run this in TF 2.2?

@mikolasan
Copy link

mikolasan commented Aug 23, 2020

There is no need to worry about the whole tensorflow.contrib module. In this project only the HParams class is used from tensorflow.contrib.training (import in model.py).

What I have found (tensorflow/community#148) is that the original class can be replaced with a nice fork. Saving hparam.py in src folder and replacing import with

from hparam import HParams

solves the original problem.

UPD: A pull request #262 just appeared that will close this issue.

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

No branches or pull requests

5 participants