Skip to content

Commit

Permalink
Fix is_different
Browse files Browse the repository at this point in the history
  • Loading branch information
thequilo committed Aug 26, 2024
1 parent 58fc36f commit 2e01f62
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 2e01f62

Please sign in to comment.