File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments