Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
pollytur committed Jul 10, 2024
1 parent 3eb6360 commit d266351
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions neuralpredictors/layers/readouts/gaussian.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,7 @@ def __init__(
torch.normal(mean=torch.ones(1, outdims), std=torch.ones(1, outdims))
)
elif self._regularizer_type != "l1":
raise ValueError(
f"regularizer_type should be 'l1' or 'adaptive_log_norm' but got {self._regularizer_type}"
)
raise ValueError(f"regularizer_type should be 'l1' or 'adaptive_log_norm' but got {self._regularizer_type}")

if init_mu_range > 1.0 or init_mu_range <= 0.0 or init_sigma <= 0.0:
raise ValueError("either init_mu_range doesn't belong to [0.0, 1.0] or init_sigma_range is non-positive")
Expand Down

0 comments on commit d266351

Please sign in to comment.