You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know how to handle this problem, have u met this ?
Does not the new version of tensorflow support this attribute operation?
ps: I did a few changes(only several functions) to your code for matching the newer tf version.
Thanks again!
Hill
The text was updated successfully, but these errors were encountered:
This is probably irrelevant for you now, but for the sake of some potential recent readers I'll answer. This was indeed coded with an earlier version of TF, arguments of tf.concat and tf.split must be changed and tf.pack is now tf.stack.
About the "can't set attribute error", from my understanding it looks like self.weights is now a reserved name for the keras framework, and trying to overwrite it doesn't do well. Changing the name of the attribute to self._weights for example will do the trick.
I would not advise using this implementation for any other purpose than playing with it though, there are quite a few problems, not only from an optimization standpoint:
there is no need to define a custom cell to access weights (see collections and trainable variables)
layers in the RNNs are the same object duplicated instead of declared separately (!!!)
no bounded action for the actor (stability issues, but easy to solve)
Hi,
Thanks for your RDPG code.It helps me a lot!
But I I seem to have encountered some difficulties when I run your code.
"spyder" report this:
AttributeError: can't set attribute
And the error comes from "custom_lstm.py"
I don't know how to handle this problem, have u met this ?
Does not the new version of tensorflow support this attribute operation?
ps: I did a few changes(only several functions) to your code for matching the newer tf version.
Thanks again!
Hill
The text was updated successfully, but these errors were encountered: