Skip to content

Commit

Permalink
Fix for ComponentArrays
Browse files Browse the repository at this point in the history
  • Loading branch information
adrhill committed Jan 24, 2025
1 parent c4a24aa commit 3c12d2d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/trace_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ end

function trace_function(::Type{T}, f!, y, x) where {T<:AbstractTracer}
xt = trace_input(T, x)
yt = fill(myempty(T), size(y))
yt = similar(y, T)
fill!(yt, myempty(T))
f!(yt, xt)
return xt, yt
end
Expand Down

0 comments on commit 3c12d2d

Please sign in to comment.