Skip to content

Commit

Permalink
Fix utilization decl order
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguy11325 committed Jun 24, 2024
1 parent ae9f0a7 commit a1bd73d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pokemonred_puffer/cleanrl_puffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ class CleanPuffeRL:
def __post_init__(self):
seed_everything(self.config.seed, self.config.torch_deterministic)
if self.config.verbose:
self.utilization = Utilization()
print_dashboard(
self.config.env,
self.utilization,
Expand All @@ -154,8 +155,6 @@ def __post_init__(self):
clear=True,
)

self.utilization = Utilization()

self.vecenv.async_reset(self.config.seed)
obs_shape = self.vecenv.single_observation_space.shape
obs_dtype = self.vecenv.single_observation_space.dtype
Expand Down

0 comments on commit a1bd73d

Please sign in to comment.