-
Notifications
You must be signed in to change notification settings - Fork 112
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
TypeError: Dimension value must be integer or None or have an __index__ method, got 256.0 #6
Comments
|
Hey, |
Thank you so much for the reply. This worked! I stumbled running model.load() though with the same problem appearing when it's loading the json. I tried changing some dtypes from the gen.json to int32, but it does not work, as well as turning all float32 to int32.
|
@cuakevinlex Hi. I ran into the same problem. I believe there is some compatibility issue with newer Tensorflows. I tested it using Tensorflow 2.1 and 2.2, both giving the same problem. The author stated that he used Tensorflow 2.0 so I tried that out. It gave a different error regarding CPU/GPU. Turns out, TF 2.0 uses a different CUDA version. So I downloaded this Docker Image which should have compatible CUDA and TF versions. It ran perfectly. |
I tried running this on Google Colab, and it gives this error when I try to run the model.
TypeError: Dimension value must be integer or None or have an index method, got 256.0
The text was updated successfully, but these errors were encountered: