mirror of
https://github.com/wassname/ray.git
synced 2026-07-10 06:28:16 +08:00
[RLlib] Arbitrary input to value() when not using GAE (#12941)
This commit is contained in:
@@ -244,7 +244,7 @@ class ValueNetworkMixin:
|
||||
# When not doing GAE, we do not require the value function's output.
|
||||
else:
|
||||
|
||||
def value(ob, prev_action, prev_reward, *state):
|
||||
def value(*args, **kwargs):
|
||||
return 0.0
|
||||
|
||||
self._value = value
|
||||
|
||||
Reference in New Issue
Block a user