Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
engmubarak48 committed Sep 23, 2024
1 parent 9395e61 commit 595db80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gflownet/policy/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def __init__(
# Checkpoint, defaults to None
self.checkpoint = config.get("checkpoint", None)
# TODO: This could be done better? We could store this only when using CNN policy. e.g. self.type could be "cnn"
if hasattr(env, 'height'):
if hasattr(env, "height"):
self.height = env.height
if hasattr(env, 'width'):
if hasattr(env, "width"):
self.width = env.width
# Instantiate the model
self.model, self.is_model = self.make_model()
Expand Down

0 comments on commit 595db80

Please sign in to comment.