Skip to content

Commit

Permalink
Merge branch 'trunk' into bengioe-qol-and-docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bengioe committed May 8, 2024
2 parents 158acbc + 02eaed3 commit aff465e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gflownet/envs/graph_building_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,7 @@ def detach(self):

def to(self, device):
self.dev = device
self.raw_logits = [i.to(device) for i in self.raw_logits]
self._masked_logits = [i.to(device) for i in self._masked_logits]
self.batch = [i.to(device) for i in self.batch]
self.slice = [i.to(device) for i in self.slice]
Expand Down

0 comments on commit aff465e

Please sign in to comment.