mirror of
https://github.com/wassname/ray.git
synced 2026-08-13 12:30:18 +08:00
[RLlib] Fix use_lstm flag for ModelV2 (w/o ModelV1 wrapping) and add it for PyTorch. (#8734)
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ class RepeatAfterMeEnv(gym.Env):
|
||||
def __init__(self, config):
|
||||
self.observation_space = Discrete(2)
|
||||
self.action_space = Discrete(2)
|
||||
self.delay = config["repeat_delay"]
|
||||
self.delay = config.get("repeat_delay", 1)
|
||||
assert self.delay >= 1, "`repeat_delay` must be at least 1!"
|
||||
self.history = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user