Skip to content

Commit

Permalink
Episode lenght now returns array
Browse files Browse the repository at this point in the history
- now episode length returns backend array
  • Loading branch information
boris-il-forte committed Jan 22, 2024
1 parent 5dc8422 commit 77affee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mushroom_rl/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def episodes_length(self):
lengths.append(l)
l = 0

return lengths
return self._array_backend.from_list(lengths)

@property
def n_episodes(self):
Expand Down

0 comments on commit 77affee

Please sign in to comment.