Closed brunorousseau closed 1 year ago
The class DiscretePolicyEstimator derives from GFNModule. This parent class implements __repr__ by making explicit reference to an environment:
DiscretePolicyEstimator
GFNModule
__repr__
The child class inherits this function, but has no env property. Thus, instances of the child class cannot be printed:
env
Thank you for raising the issue. It will be fixed in an imminent release.
The class![Screenshot 2023-08-30 at 3 19 57 PM](https://github.com/saleml/torchgfn/assets/106997596/122fc3b8-a3f1-4b1c-aa44-96a592815ecd)
DiscretePolicyEstimator
derives fromGFNModule
. This parent class implements__repr__
by making explicit reference to an environment:The child class inherits this function, but has no![Screenshot 2023-08-30 at 3 18 54 PM](https://github.com/saleml/torchgfn/assets/106997596/fc38f4e0-6768-4ab9-8297-4f5b23d7b308)
env
property. Thus, instances of the child class cannot be printed: