Skip to content

Commit

Permalink
Turn on deterministic for histogram.
Browse files Browse the repository at this point in the history
  • Loading branch information
datumbox committed Dec 4, 2020
1 parent 84fc498 commit d84cb56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/test_functional_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,6 +923,7 @@ def test_autocontrast(self):
)

def test_equalize(self):
torch.set_deterministic(False)
self._test_adjust_fn(
F.equalize,
F_pil.equalize,
Expand Down
1 change: 1 addition & 0 deletions test/test_transforms_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_random_autocontrast(self):
self._test_op('autocontrast', 'RandomAutocontrast')

def test_random_equalize(self):
torch.set_deterministic(False)
self._test_op('equalize', 'RandomEqualize')

def test_color_jitter(self):
Expand Down

0 comments on commit d84cb56

Please sign in to comment.