Skip to content

Commit

Permalink
Merge pull request #39 from instadeepai/lbeyers-patch-bool-conversion
Browse files Browse the repository at this point in the history
Update subsample_similar.py
  • Loading branch information
lbeyers authored Aug 23, 2024
2 parents 9fbc536 + 645078c commit 96e573d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion og_marl/vault_utils/subsample_similar.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_episode_returns_and_term_idxes(offline_data: Dict[str, Array]) -> Tuple[
rewards = offline_data["rewards"][0, :, 0]
terminal_flag = offline_data["terminals"][0, :, ...].all(axis=-1)

assert terminal_flag[-1] is True
assert bool(terminal_flag[-1]) is True

def scan_cumsum(
return_so_far: float, prev_term_reward: Tuple[bool, float]
Expand Down

0 comments on commit 96e573d

Please sign in to comment.