Skip to content

Commit

Permalink
fix use words instead of greek letters
Browse files Browse the repository at this point in the history
  • Loading branch information
Red-Portal committed Jun 13, 2024
1 parent ec4db7e commit 9062431
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ end
function maybe_init_optimizer(
state_init::NamedTuple,
optimizer ::Optimisers.AbstractRule,
λ ::AbstractVector
params ::AbstractVector
)
haskey(state_init, :optimizer) ? state_init.optimizer : Optimisers.setup(optimizer, λ)
haskey(state_init, :optimizer) ? state_init.optimizer : Optimisers.setup(optimizer, params)
end

function maybe_init_objective(
state_init::NamedTuple,
rng ::Random.AbstractRNG,
objective ::AbstractVariationalObjective,
λ ::AbstractVector,
params ::AbstractVector,
restructure
)
haskey(state_init, :objective) ? state_init.objective : init(rng, objective, λ, restructure)
haskey(state_init, :objective) ? state_init.objective : init(rng, objective, params, restructure)
end

eachsample(samples::AbstractMatrix) = eachcol(samples)
Expand Down

1 comment on commit 9062431

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark Results

Benchmark suite Current: 9062431 Previous: ec4db7e Ratio
normal + bijector/meanfield/ForwardDiff 565275016.5 ns 537087137.5 ns 1.05
normal + bijector/meanfield/ReverseDiff 195508939 ns 189969735 ns 1.03

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.