Skip to content

Commit

Permalink
Rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
bqth29 authored Jan 4, 2024
1 parent 5f9f325 commit a21dcfe
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ def __step_update(self) -> None:
def __check_stop(self, use_window: bool) -> None:
if use_window and self.__do_sampling:
stored_spins = self.window.get_stored_spins()
all_agents_converged = torch.any(torch.eq(stored_spins, 0)).item()
self.run = all_agents_converged
some_agents_not_converged = torch.any(torch.eq(stored_spins, 0)).item()
self.run = some_agents_not_converged
if not self.run:
LOGGER.info("Optimizer stopped. Reason: all agents converged.")
return
Expand Down

0 comments on commit a21dcfe

Please sign in to comment.