Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
liopeer committed Jan 6, 2025
1 parent d530c5b commit d79ba68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lightly/loss/detcon_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,7 @@ def __init__(
self.temperature = temperature
self.gather_distributed = gather_distributed
if abs(self.temperature) < self.eps:
raise ValueError(
f"Illegal temperature: abs({self.temperature}) < 1e-8"
)
raise ValueError(f"Illegal temperature: abs({self.temperature}) < 1e-8")

Check warning on line 131 in lightly/loss/detcon_loss.py

View check run for this annotation

Codecov / codecov/patch

lightly/loss/detcon_loss.py#L131

Added line #L131 was not covered by tests
if self.gather_distributed and not dist.is_available():
raise ValueError(

Check warning on line 133 in lightly/loss/detcon_loss.py

View check run for this annotation

Codecov / codecov/patch

lightly/loss/detcon_loss.py#L133

Added line #L133 was not covered by tests
"gather_distributed is True but torch.distributed is not available. "
Expand Down

0 comments on commit d79ba68

Please sign in to comment.