We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9395e61 commit 595db80Copy full SHA for 595db80
gflownet/policy/base.py
@@ -54,9 +54,9 @@ def __init__(
54
# Checkpoint, defaults to None
55
self.checkpoint = config.get("checkpoint", None)
56
# TODO: This could be done better? We could store this only when using CNN policy. e.g. self.type could be "cnn"
57
- if hasattr(env, 'height'):
+ if hasattr(env, "height"):
58
self.height = env.height
59
- if hasattr(env, 'width'):
+ if hasattr(env, "width"):
60
self.width = env.width
61
# Instantiate the model
62
self.model, self.is_model = self.make_model()
0 commit comments