Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Jan 9, 2024
1 parent 04279ca commit 50fd5e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/algorithms/test_required_on_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,9 @@ def test_autoload(algo_name: str, load_weights_only: bool, already_added: bool,
# Excluding some algorithms leads to errors when loading
elif exclude:
if version.parse(torch.__version__) > version.parse('2.1.3'):
if algo_name in ['Alibi', 'BlurPool', 'Factorize', 'GatedLinearUnits', 'GhostBatchNorm', 'SqueezeExcite']:
if algo_name in [
'Alibi', 'BlurPool', 'Factorize', 'GatedLinearUnits', 'GhostBatchNorm', 'SqueezeExcite'
]:
context = pytest.raises(KeyError) # Optimizer loading is strict
else:
if algo_name in ['Factorize', 'SqueezeExcite']:
Expand Down

0 comments on commit 50fd5e2

Please sign in to comment.