flpelerin commited on
Commit
0f06672
·
1 Parent(s): f7c1de1

Update file logger.py

Browse files
Files changed (1) hide show
  1. logger.py +4 -1
logger.py CHANGED
@@ -16,9 +16,12 @@ class Wandb:
16
  self.name = 'run-' + RandomCode()
17
 
18
  os.environ['WANDB_API_KEY'] = self.api_key
19
- wandb.init(self.project, self.entity, self.name, reinit=True, config={})
20
 
21
 
 
 
 
22
 
23
  def __call__(self, args):
24
  wandb.log(args)
 
16
  self.name = 'run-' + RandomCode()
17
 
18
  os.environ['WANDB_API_KEY'] = self.api_key
19
+ self.init()
20
 
21
 
22
+ def init(self):
23
+
24
+ wandb.init(self.project, self.entity, self.name, reinit=True, config={})
25
 
26
  def __call__(self, args):
27
  wandb.log(args)