Skip to content

Commit

Permalink
Merge pull request #310 from alexhernandezgarcia/fix-gfn-get-max-reward
Browse files Browse the repository at this point in the history
[Fix bug] [One-line PR] Fix call of `proxy.get_max_reward()`
  • Loading branch information
carriepl authored May 31, 2024
2 parents bcb1443 + 982d0b5 commit 72f961b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gflownet/gflownet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1538,7 +1538,7 @@ def sample_from_reward(
format.
"""
samples_final = []
max_reward = self.get_max_reward()
max_reward = self.proxy.get_max_reward()
while len(samples_final) < n_samples:
if proposal_distribution == "uniform":
# TODO: sample only the remaining number of samples
Expand Down

0 comments on commit 72f961b

Please sign in to comment.