Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamasb committed Dec 26, 2023
1 parent 8d32aa2 commit b15bdf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/task/test_instantiate_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_instantiate_transforms():
cfg = omegaconf.OmegaConf.load(config_path)

if t == "multihot_label_encoding.yaml":
cfg.num_classes = 2
cfg.multihot_label_encoding.num_classes = 2
transform = instantiate(cfg)

if t == "none.yaml":
Expand All @@ -30,7 +30,7 @@ def test_transform_call(example_batch):
cfg = omegaconf.OmegaConf.load(config_path)

if t == "multihot_label_encoding.yaml":
cfg.num_classes = 2
cfg.multihot_label_encoding.num_classes = 2

transform = instantiate(cfg)

Expand Down

0 comments on commit b15bdf2

Please sign in to comment.