Skip to content

Commit

Permalink
terminating_states are now calculated using self.all_states
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Nov 15, 2024
1 parent 8259a21 commit de9edea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gfn/gym/hypergrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def get_terminating_states_indices(self, states: DiscreteStates) -> torch.Tensor
Returns the indices of the terminating states in the canonical ordering as a tensor of shape `batch_shape`.
"""
return self.get_states_indices(states)
return self.get_states_indices(self.all_states)

@property
def n_states(self) -> int:
Expand Down

0 comments on commit de9edea

Please sign in to comment.