Skip to content

Commit db174cb

Browse files
authored
remove tricks
1 parent 3cb5cbc commit db174cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/differentiation/vecjac_products.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ function (L::AutoDiffVJP{<:AutoFiniteDiff})(dv, v, p, t; VJP_input = nothing)
152152
end
153153

154154
function Base.resize!(L::AutoDiffVJP, n::Integer)
155-
static_hasmethod(resize!, typeof((L.f, n))) && resize!(L.f, n)
155+
hasmethod(resize!, typeof((L.f, n))) && resize!(L.f, n)
156156
resize!(L.u, n)
157157
for v in L.cache
158158
resize!(v, n)

0 commit comments

Comments
 (0)