Skip to content

Commit

Permalink
Use _get_state(state) and _get_done(done)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhernandezgarcia committed Nov 23, 2023
1 parent fcfa070 commit 3961398
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gflownet/envs/crystals/miller.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,8 @@ def get_mask_invalid_actions_forward(
- True if the forward action is invalid from the current state.
- False otherwise.
"""
if state is None:
state = self.state.copy()
if done is None:
done = self.done
state = self._get_state(state)
done = self._get_done(done)

mask = super().get_mask_invalid_actions_forward(state, done)

Expand Down

0 comments on commit 3961398

Please sign in to comment.