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

Native Installation Leads to a "no attribute sort" error? #242

Open
SarahSzabo opened this issue Apr 29, 2020 · 1 comment
Open

Native Installation Leads to a "no attribute sort" error? #242

SarahSzabo opened this issue Apr 29, 2020 · 1 comment

Comments

@SarahSzabo
Copy link

After following the instructions carefully in bash, for the native installation they inevitably lead to this error: AttributeError: module 'tensorflow' has no attribute 'sort'

I wrote a SO post about it here which has the full stack trace: https://stackoverflow.com/questions/61510865/tensorflow-has-no-attribute-sort-in-gpt-2-git-release

What should I do to have a successful install and resolve this issue?

@mcenderdragon
Copy link

mcenderdragon commented May 21, 2020

After way too much debugging I found the solution for this! Update Tensorflow.
Replacing the docker image did fix it for me https://github.com/openai/gpt-2/blob/master/Dockerfile.cpu#L1. So just use FROM tensorflow/tensorflow:1.15.0-py3 instaed and it should work. It is important to not update to tensorflow 2.2

mcenderdragon added a commit to mcenderdragon/gpt-2 that referenced this issue May 21, 2020
skaramicke added a commit to skaramicke/gpt-2 that referenced this issue Dec 14, 2020
tensorflow 1.12.0 leads to error "no attribute sort". Fix is to upgrade to tensorflow 1.15.0 (openai#242)
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

2 participants