Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: sven1977 <svenmika1977@gmail.com>
  • Loading branch information
sven1977 committed Sep 4, 2024
1 parent a9e7055 commit 55c5a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rllib/examples/rl_modules/classes/modelv2_to_rlm.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def _forward_train(self, batch: Dict[str, Any], **kwargs) -> Dict[str, Any]:
def _forward_pass(self, batch, inference=True):
# Translate states and seq_lens into old API stack formats.
batch = batch.copy()
state_in = batch.pop(Columns.STATE_IN, [])
state_in = batch.pop(Columns.STATE_IN, {})
state_in = [s for i, s in sorted(state_in.items())]
seq_lens = batch.pop(Columns.SEQ_LENS, None)

Expand Down

0 comments on commit 55c5a77

Please sign in to comment.