Skip to content

Commit

Permalink
add raw_logits in categorical to() method (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
bengioe authored May 6, 2024
1 parent 286c301 commit 02eaed3
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 @@ -627,6 +627,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 02eaed3

Please sign in to comment.