Skip to content

Commit

Permalink
Merge pull request #97 from normal-computing/inplace-False
Browse files Browse the repository at this point in the history
Ensure inplace defaults to False
  • Loading branch information
SamDuffield authored Jun 5, 2024
2 parents 6152010 + 1ebd9e8 commit 03de980
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion posteriors/laplace/dense_fisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def update(
batch: Any,
log_posterior: LogProbFn,
per_sample: bool = False,
inplace: bool = True,
inplace: bool = False,
) -> DenseLaplaceState:
"""Adds empirical Fisher information matrix of covariance summed over
given batch.
Expand Down
2 changes: 1 addition & 1 deletion posteriors/torchopt.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def update(
batch: TensorTree,
loss_fn: LogProbFn,
optimizer: torchopt.base.GradientTransformation,
inplace: bool = True,
inplace: bool = False,
) -> TorchOptState:
"""Update the [TorchOpt](https://github.com/metaopt/torchopt) optimizer state.
Expand Down

0 comments on commit 03de980

Please sign in to comment.