Skip to content

Commit 66a8544

Browse files
committed
implement copy for LogPriorWithoutJacAcc
1 parent 1b73e5a commit 66a8544

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/optimisation/Optimisation.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ function DynamicPPL.accumulator_name(::Type{<:LogPriorWithoutJacobianAccumulator
7676
return :LogPriorWithoutJacobian
7777
end
7878

79+
Base.copy(acc::LogPriorWithoutJacobianAccumulator) = acc
80+
7981
function DynamicPPL.split(::LogPriorWithoutJacobianAccumulator{T}) where {T}
8082
return LogPriorWithoutJacobianAccumulator(zero(T))
8183
end

0 commit comments

Comments
 (0)