Skip to content

Commit

Permalink
remove tricks
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith authored Oct 9, 2024
1 parent 3cb5cbc commit db174cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/differentiation/vecjac_products.jl
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function (L::AutoDiffVJP{<:AutoFiniteDiff})(dv, v, p, t; VJP_input = nothing)
end

function Base.resize!(L::AutoDiffVJP, n::Integer)
static_hasmethod(resize!, typeof((L.f, n))) && resize!(L.f, n)
hasmethod(resize!, typeof((L.f, n))) && resize!(L.f, n)
resize!(L.u, n)
for v in L.cache
resize!(v, n)
Expand Down

0 comments on commit db174cb

Please sign in to comment.