Skip to content

Commit

Permalink
[RLlib] DreamerV3 hotfix (for 2.6 release). (ray-project#37146)
Browse files Browse the repository at this point in the history
  • Loading branch information
sven1977 authored Jul 6, 2023
1 parent 509184a commit 9e93cd9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions rllib/core/learner/learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
SingleAgentRLModuleSpec,
)
from ray.rllib.policy.sample_batch import DEFAULT_POLICY_ID, MultiAgentBatch
from ray.rllib.policy.sample_batch import SampleBatch
from ray.rllib.utils.annotations import (
OverrideToImplementCustomLogic,
OverrideToImplementCustomLogic_CallToSuperRecommended,
Expand Down Expand Up @@ -1351,9 +1350,6 @@ def _set_slicing_by_batch_id(

for pid, policy_batch in batch.policy_batches.items():
if self.module[pid].is_stateful():
assert (
policy_batch.get(SampleBatch.SEQ_LENS, None) is not None
), "Recurrent modules require a `seq_lens` tensor in the policy batch."
# We assume that arriving batches for recurrent modules are already
# padded to the max sequence length and have tensors of shape
# [B, T, ...]. Therefore, we slice sequence lengths in B. See
Expand Down

0 comments on commit 9e93cd9

Please sign in to comment.