Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #184 from inferno-pytorch/fix_frequency
Browse files Browse the repository at this point in the history
Handle value 'never' in train_utils.Frequency
  • Loading branch information
constantinpape committed Jul 8, 2019
2 parents 80396d1 + 758925d commit e896cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inferno/utils/train_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def value(self):
@value.setter
def value(self, value):
# If value is not being set, make sure the frequency never matches muhahaha
if value is None:
if value is None or value == 'never':
value = np.inf
self.assert_value_consistent(value)
self._value = value
Expand Down

0 comments on commit e896cf5

Please sign in to comment.