Skip to content

Commit a225275

Browse files
committed
Remove wrong rule to fix issue #35
1 parent 87352d2 commit a225275

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/convolutions.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,18 +74,6 @@ function conv_psf(u::AbstractArray{T, N}, psf::AbstractArray{D, M}, dims=ntuple(
7474
return conv(u, ifftshift(psf, dims), dims)
7575
end
7676

77-
# define custom adjoint for conv
78-
# so far only defined for the derivative regarding the first component
79-
function ChainRulesCore.rrule(::typeof(conv), u::AbstractArray{T, N}, v::AbstractArray{D, M},
80-
dims=ntuple(+, min(N, M))) where {T, D, N, M}
81-
Y = conv(u, v, dims)
82-
function conv_pullback(barx)
83-
z = zero(eltype(u))
84-
return NoTangent(), conv(barx, conj(v), dims), z, z
85-
end
86-
return Y, conv_pullback
87-
end
88-
8977

9078

9179
"""

0 commit comments

Comments
 (0)