-
Notifications
You must be signed in to change notification settings - Fork 725
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
error while using LstmPolicy #882
Comments
Possibly related issue #373 . I recommend you check it out if it offers help. Using keras layers has given some headaches in the past, so that could be causing issues as well. Apart from that I can not tell what is the issue here.
It has been a while since I last time used TF, but back then a single |
sorry, but I didn't use keras, it's the stable_baselines lstmPolicy implementation with tf
this is not allowed in tensorflow, I doubled checked..but I still can't figure out what is the problem here |
My bad, the error message made me believe Keras things were being used. Apart from this, I can not provide more help with this limited info, as default parts in stable-baseline work as expected. I have used custom cnn feature extractor with LSTMs without a problem. |
I'm trying to implement impalaCNN with lstm output layer with PPO2, so I used LstmPolicy with impala as feature extractor, but it gives me this error
when I traced this error I found that this line
_,n_input = [v.value for v in input_tensor[0].get_shape()]
(in common/tf_layers.py line 141)returns (1,None), then n_inputs will be None and it's not legal to define a tensorflow variable with None part in its shape.
here's the piece of code in the lstmPolicy
does anyone have a solution t
The text was updated successfully, but these errors were encountered: