Skip to content

Commit

Permalink
Clean signature
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDuffield committed Mar 6, 2024
1 parent d29fb02 commit b81833f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uqlib/vi/diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class VIDiagState:
def init(
params: TensorTree,
optimizer: torchopt.base.GradientTransformation,
init_log_sds: TensorTree | float | None = None,
init_log_sds: TensorTree | float = 0.0,
) -> VIDiagState:
"""Initialise diagonal Normal variational distribution over parameters.
Expand Down Expand Up @@ -142,7 +142,7 @@ def build(
temperature: float = 1.0,
n_samples: int = 1,
stl: bool = True,
init_log_sds: TensorTree | None = None,
init_log_sds: TensorTree | float = 0.0,
) -> Transform:
"""Builds a transform for variational inference with a diagonal Normal
distribution over parameters.
Expand Down

0 comments on commit b81833f

Please sign in to comment.