Skip to content

Commit

Permalink
Fix is_different (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
thequilo authored Aug 26, 2024
1 parent 356c310 commit 6b47feb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sacred/config/custom_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ def is_different(old_value, new_value):
old_value = opt.np.asarray(old_value)
new_value = opt.np.asarray(new_value)
except:
return False
return True
else:
result = old_value == new_value
result = old_value != new_value
if isinstance(result, bool):
return result
else:
Expand Down

0 comments on commit 6b47feb

Please sign in to comment.