-
Notifications
You must be signed in to change notification settings - Fork 758
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
Does not work with tensorflow-gpu #29
Comments
Shape:TensorShape([Dimension(None), Dimension(75), Dimension(6), Dimension(7)]) |
The module is called from here.
Call Stack: |
@Vovak1919 at least for
It seems to be a problem with keras, the version 2.1.5 worked for me. (It should also be solved on master but not yet on the pip version) |
Thank you, earned after correcting the file tensorflow_backend.py |
What did you do as a correction? |
After installing tensorflow-gpu, errors appeared in the model.py module:
Line 138
150 x = BatchNormalization(axis=1)(x)
^
ValueError
Shape must be rank 1 but is rank 0 for 'batch_normalization_1/cond/Reshape_4' (op: 'Reshape') with input shapes: [1,75,1,1], [].
File "C:\DRL\model.py", line 150, in conv_layer
x = BatchNormalization(axis=1)(x)
File "C:\DRL\model.py", line 225, in _build_model
x = self.conv_layer(main_input, self.hidden_layers[0]['filters'], self.hidden_layers[0]['kernel_size'])
File "C:\DRL\model.py", line 114, in init
self.model = self._build_model()
File "C:\DRL\Untitled-1.py", line 67, in
current_NN = Residual_CNN(config.REG_CONST, config.LEARNING_RATE, (2,) + env.grid_shape, env.action_size, config.HIDDEN_CNN_LAYERS)
The text was updated successfully, but these errors were encountered: