Skip to content

Commit 3873ea7

Browse files
committed
Minor test change
1 parent afb6bd0 commit 3873ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,5 @@ def test_model_default_cfgs(model_name, batch_size):
6666
input_size = tuple([min(x, 448) for x in input_size])
6767
outputs = model.forward_features(torch.randn((batch_size, *input_size)))
6868
assert outputs.shape[-1] == pool_size[-1] and outputs.shape[-2] == pool_size[-2]
69-
assert any([k.startswith(cfg['classifier']) for k in state_dict.keys()]), f'{classifier} not in model params'
70-
assert any([k.startswith(cfg['first_conv']) for k in state_dict.keys()]), f'{first_conv} not in model params'
69+
assert any([k.startswith(classifier) for k in state_dict.keys()]), f'{classifier} not in model params'
70+
assert any([k.startswith(first_conv) for k in state_dict.keys()]), f'{first_conv} not in model params'

0 commit comments

Comments
 (0)