Skip to content

Commit

Permalink
Merge pull request #33 from gdalle/no_collect
Browse files Browse the repository at this point in the history
Avoid collecting `v`
  • Loading branch information
ElOceanografo authored Oct 23, 2024
2 parents 287dcac + 59e0d63 commit 86e6be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MarginalLogDensities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ function modal_hessian!(mld::MarginalLogDensity, w, p2)
end

function _marginalize(mld, v, data, method::LaplaceApprox, verbose)
p2 = (; p = data, v = collect(v))
p2 = (; p = data, v = v)
verbose && println("Finding mode...")
wopt, objective = optimize_marginal!(mld, p2)
verbose && println("Calculating hessian...")
Expand Down

0 comments on commit 86e6be7

Please sign in to comment.