Skip to content

Commit

Permalink
removed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
josephdviviano committed Feb 24, 2024
1 parent 26dda4b commit 1a6e768
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gfn/gflownet/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ def get_pfs_and_pbs(
if self.off_policy:
# We re-use the values calculated in .sample_trajectories().
if trajectories.estimator_outputs is not None:
estimator_outputs = trajectories.estimator_outputs[ # TODO: This contains `inf` when we use the new `stack_states` method in `samplers.py`!
~trajectories.actions.is_dummy # And this causes later failures (p_f is not finite).
estimator_outputs = trajectories.estimator_outputs[
~trajectories.actions.is_dummy
]
else:
raise Exception(
Expand Down

0 comments on commit 1a6e768

Please sign in to comment.