Skip to content

Commit c44bae1

Browse files
committed
Merge branch 'py/fastldf' into py/fastldf2
2 parents 9c71e81 + 075cee8 commit c44bae1

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/fastldf.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -350,25 +350,6 @@ function (f::FastLogDensityAt)(params::AbstractVector{<:Real})
350350
return f._getlogdensity(vi)
351351
end
352352

353-
function _evaluate!!(model::Model, varinfo::OnlyAccsVarInfo)
354-
if leafcontext(model.context) isa FastEvalVectorContext
355-
args = map(maybe_deepcopy, model.args)
356-
return model.f(model, varinfo, args...; model.defaults...)
357-
else
358-
error("Shouldn't happen")
359-
end
360-
end
361-
maybe_deepcopy(@nospecialize(x)) = x
362-
function maybe_deepcopy(x::AbstractArray{T}) where {T}
363-
if T >: Missing
364-
# avoid overwriting missing elements of model arguments when
365-
# evaluating the model.
366-
deepcopy(x)
367-
else
368-
x
369-
end
370-
end
371-
372353
function LogDensityProblems.logdensity(fldf::FastLDF, params::AbstractVector{<:Real})
373354
return FastLogDensityAt(
374355
fldf.model, fldf._getlogdensity, fldf._iden_varname_ranges, fldf._varname_ranges

0 commit comments

Comments
 (0)