Open lukemhall opened 6 years ago
Tensorflow feed_dict expects to be passed python scalars or numpy arrays as values. You are passing it a tensor object.
In the following line it seems state
and mask
are tensor objects.
return sess.run([a0, v0, snew, neglogp0], {X:ob, S:state, M:mask})
Can you provide your step function for more context?
Hello,
I'm trying to run a trained model for the LSTM and LNLSTM policies in A2C. I was able to get the basic convolutional neural net policy to work just fine, but when trying to step the model for LSTM, I get an error because of the state and mask parameters. The error seems to have something to do with putting placeholders in the feed_dict when running the TF session from the policy. Here is my full code and error:
Thank you for any help you might be able to provide.