Skip to content

Commit

Permalink
fix flake
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki authored Oct 5, 2022
1 parent 6b1e01e commit 49c32b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unittests/image/test_tv.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class TestTotalVariation(MetricTester):
@pytest.mark.parametrize("dist_sync_on_step", [True, False])
def test_total_variation(self, preds, target, reduction, ddp, dist_sync_on_step):
"""Test modular implementation."""
if reduction == None and ddp:
if reduction is None and ddp:
pytest.skip("reduction=None and ddp=True runs out of memory on CI hardware, but it does work")
self.run_class_metric_test(
ddp,
Expand Down

0 comments on commit 49c32b3

Please sign in to comment.