Replies: 1 comment 4 replies
-
A temporary workaround is to overwrite tianshou/tianshou/data/collector.py Lines 135 to 144 in bf8f63f But it's hard to say which state the user wants. If you want to add an API: where does the initial state come from, policy or env? How can we add such a function conveniently? How can the user use this function conveniently? Once the above three questions resolve, you can definitely submit a pull request! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to use Collector together with a stateful policy. I could find some code that is supposed to support this case in
Collector.collect()
:However, reset procedure doesn't fill the last_state with a useful initial value. Maybe a method similar to
reset_env
is needed? Furthermore this would probably call for adding an initial state method to BasePolicy to let it define it explicitly.But maybe I'm missing something? Please let me know if there is an example with a stateful policy.
Beta Was this translation helpful? Give feedback.
All reactions