From e28afbdda9d2797ce16e4d3a055c2359d90b9410 Mon Sep 17 00:00:00 2001 From: thatguy11325 <148832074+thatguy11325@users.noreply.github.com> Date: Fri, 21 Jun 2024 07:49:02 -0400 Subject: [PATCH] Yet another default factory --- pokemonred_puffer/cleanrl_puffer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokemonred_puffer/cleanrl_puffer.py b/pokemonred_puffer/cleanrl_puffer.py index 71cdcc1..d26c089 100644 --- a/pokemonred_puffer/cleanrl_puffer.py +++ b/pokemonred_puffer/cleanrl_puffer.py @@ -136,7 +136,7 @@ class CleanPuffeRL: epoch: int = 0 stats: dict = field(default_factory=lambda: {}) msg: str = "" - infos: dict = defaultdict(list) + infos: dict = field(default_factory=lambda: defaultdict(list)) def __post_init__(self): seed_everything(self.config.seed, self.config.torch_deterministic)