GFNOrg / torchgfn

GFlowNet library
https://torchgfn.readthedocs.io/en/latest/
Other
212 stars 26 forks source link

Explore ways of vectorizing the flow matching loss #116

Open saleml opened 1 year ago

saleml commented 1 year ago

Currently, the flow matching loss requires a loop over all possible actions for action_idx in range(self.env.n_actions - 1):.

This might be impractical if the number of actions blows. We might want to explore ways of vectorizing that for loop.

One idea is to "repeat" the states, and creating a big actions tensor.