Skip to content

Commit

Permalink
Remove another wrong rule
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Mar 21, 2023
1 parent a225275 commit 79cd82a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/convolutions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,6 @@ function p_conv_aux(P, P_inv, u, v_ft)
return (P_inv.p * ((P * u) .* v_ft .* P_inv.scale))
end

function ChainRulesCore.rrule(::typeof(p_conv_aux), P, P_inv, u, v)
Y = p_conv_aux(P, P_inv, u, v)
function conv_pullback(barx)
z = zero(eltype(u))
= p_conv_aux(P, P_inv, barx, conj(v))
return NoTangent(), z, z, ∇, z
end
return Y, conv_pullback
end

"""
fft_or_rfft(T)
Expand Down

0 comments on commit 79cd82a

Please sign in to comment.