Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix add_config func is not called bug #613

Merged
merged 10 commits into from
Oct 24, 2022
Prev Previous commit
Next Next commit
fix add config unit test
  • Loading branch information
shenmishajing committed Oct 19, 2022
commit 51b2f35fd0b2c71202b058b99b958305618857e7
3 changes: 2 additions & 1 deletion tests/test_visualizer/test_vis_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ def test_experiment(self):

def test_add_config(self):
cfg = Config(dict(a=1, b=dict(b1=[0, 1])))
wandb_vis_backend = WandbVisBackend('temp_dir', log_code_name='code')
wandb_vis_backend = WandbVisBackend(
'temp_dir', log_code_kwargs=dict(name='code'))
_wandb = wandb_vis_backend.experiment
_wandb.run.dir = 'temp_dir'
wandb_vis_backend.add_config(cfg)
Expand Down