Skip to content

Commit 4e08b36

Browse files
Remove adjoint overload
It's not needed and causes a bunch of warnings to be thrown.
1 parent fc4132a commit 4e08b36

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/derivative.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ function Compat.LinearAlgebra.gradient(f, dtype::Symbol = :central)
2929
end
3030
end
3131

32-
if isdefined(Base, :adjoint)
33-
Base.adjoint(f::Function) = derivative(f)
34-
else
35-
Base.ctranspose(f::Function) = derivative(f)
36-
end
37-
3832
function jacobian(f, x::Vector{T}, dtype::Symbol) where T <: Number
3933
finite_difference_jacobian(f, x, dtype)
4034
end

0 commit comments

Comments
 (0)