This commit is contained in:
Dominik Moritz Roth 2023-07-10 11:26:46 +02:00
parent d516ac9888
commit ee2efa6da9

View File

@ -14,7 +14,7 @@ d = pdb.set_trace
REQUIRE_CONFIG_CONSUMED = False
WANDB_START_METHOD = 'fork'
REINIT = False
REINIT = True
Parallelization_Primitive = Thread # Process
@ -90,9 +90,10 @@ class Slate():
def expand_vars(self, string, **kwargs):
if isinstance(string, str):
rand = int(random.random()*99999999)
if string == '{rand}':
return int(random.random()*99999999)
return string.format(**kwargs, rand=int(random.random()*99999999))
return rand
return string.format(**kwargs, rand=rand)
return string
def apply_nested(self, d, f):