Skip to content

Commit

Permalink
Merge pull request #1432 from ElOceanografo/ElOceanografo-logabsdet
Browse files Browse the repository at this point in the history
Remove @adjoint for logabsdet
  • Loading branch information
oxinabox authored Jun 1, 2023
2 parents e2d7839 + b03590b commit 761c82c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lib/array.jl
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,6 @@ function _pullback(cx::AContext, ::typeof(kron), a::AbstractMatrix, b::AbstractM
return res, back unthunk_tangent
end

@adjoint logabsdet(xs::AbstractMatrix) = logabsdet(xs), Δ -> (Δ[1] * inv(xs)',)

@adjoint function inv(A::Union{Number, AbstractMatrix})
Ainv = inv(A)
return Ainv, function (Δ)
Expand Down

0 comments on commit 761c82c

Please sign in to comment.