File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1515
1616# transformer models don't support many of the spatial / feature based model functionalities
1717NON_STD_FILTERS = ['vit_*' , 'tnt_*' ]
18+ NUM_NON_STD = len (NON_STD_FILTERS )
1819
1920# exclude models that cause specific test failures
2021if 'GITHUB_ACTIONS' in os .environ : # and 'Linux' in platform.system():
3132
3233
3334@pytest .mark .timeout (120 )
34- @pytest .mark .parametrize ('model_name' , list_models (exclude_filters = EXCLUDE_FILTERS [:- 1 ]))
35+ @pytest .mark .parametrize ('model_name' , list_models (exclude_filters = EXCLUDE_FILTERS [:- NUM_NON_STD ]))
3536@pytest .mark .parametrize ('batch_size' , [1 ])
3637def test_model_forward (model_name , batch_size ):
3738 """Run a single forward pass with each model"""
Original file line number Diff line number Diff line change 66from .efficientnet import *
77from .gluon_resnet import *
88from .gluon_xception import *
9+ from .hardcorenas import *
910from .hrnet import *
1011from .inception_resnet_v2 import *
1112from .inception_v3 import *
2324from .selecsls import *
2425from .senet import *
2526from .sknet import *
27+ from .tnt import *
2628from .tresnet import *
2729from .vgg import *
2830from .vision_transformer import *
2931from .vovnet import *
3032from .xception import *
3133from .xception_aligned import *
32- from .hardcorenas import *
33- from .tnt import *
3434
3535from .factory import create_model , split_model_name , safe_model_name
3636from .helpers import load_checkpoint , resume_checkpoint , model_parameters
You can’t perform that action at this time.
0 commit comments