fix: need to pass to settings as kwargs

This commit is contained in:
Dominik Moritz Roth 2023-07-27 15:10:52 +02:00
parent 98ce730086
commit f484e9d24c

View File

@ -282,7 +282,7 @@ class Slate():
project=project, project=project,
config=copy.deepcopy(config), config=copy.deepcopy(config),
reinit=self.consume(wandbC, 'reinit', DEFAULT_REINIT), reinit=self.consume(wandbC, 'reinit', DEFAULT_REINIT),
settings=wandb.Settings(self.consume(wandbC, 'settings')), settings=wandb.Settings(**self.consume(wandbC, 'settings', {})),
**wandbC **wandbC
) as run: ) as run:
runner = Runner(self, config) runner = Runner(self, config)
@ -306,7 +306,7 @@ class Slate():
with wandb.init( with wandb.init(
project=project, project=project,
reinit=self.consume(wandbC, 'reinit', DEFAULT_REINIT), reinit=self.consume(wandbC, 'reinit', DEFAULT_REINIT),
settings=wandb.Settings(self.consume(wandbC, 'settings')), settings=wandb.Settings(**self.consume(wandbC, 'settings', {})),
**wandbC **wandbC
) as run: ) as run:
config = copy.deepcopy(orig_config) config = copy.deepcopy(orig_config)