Skip to content

Commit

Permalink
call other methods
Browse files Browse the repository at this point in the history
Co-authored-by: Markus Hauru <[email protected]>
  • Loading branch information
alyst and mhauru authored May 30, 2024
1 parent c9d8a9f commit 2c49c11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/optimisation/Optimisation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ function DynamicPPL.dot_tilde_assume(ctx::OptimizationContext, right, left, vns,
return r, lp, vi
end

DynamicPPL.tilde_observe(::OptimizationContext{<:PriorContext}, right, left, vi) =
(0, vi)
DynamicPPL.tilde_observe(ctx::OptimizationContext{<:PriorContext}, args...) =
DynamicPPL.tilde_observe(ctx.context, args...)

DynamicPPL.dot_tilde_observe(::OptimizationContext{<:PriorContext}, right, left, vi) =
(0, vi)
DynamicPPL.dot_tilde_observe(ctx::OptimizationContext{<:PriorContext}, args...) =
DynamicPPL.dot_tilde_observe(ctx.context, args...)

"""
OptimLogDensity{M<:Model,C<:Context,V<:VarInfo}
Expand Down

0 comments on commit 2c49c11

Please sign in to comment.