GFNOrg / torchgfn

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

removed utility function (DRY) addressing #154 #157

Closed josephdviviano closed 6 months ago

josephdviviano commented 6 months ago

This fixes nit https://github.com/GFNOrg/torchgfn/issues/154, factoring out a function to repeat code duplication.

Logic governing typecasting is also clarified.

josephdviviano commented 6 months ago

I'm not sure -- it's possibly due to a caching behaviour?