Skip to content

Commit 3fe59b4

Browse files
committed
Remove BLAS.asum(x) rules
1 parent e0384be commit 3fe59b4

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/rulesets/LinearAlgebra/blas.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -67,20 +67,6 @@ end
6767
##### `BLAS.asum`
6868
#####
6969

70-
function frule(::typeof(BLAS.asum), x, _, Δx)
71-
return BLAS.asum(x), sum(zip(x, Δx)) do xs
72-
x, Δx = xs
73-
return sign(x) * Δx
74-
end
75-
end
76-
77-
function rrule(::typeof(BLAS.asum), x)
78-
function asum_pullback(ΔΩ)
79-
return (NO_FIELDS, @thunk(ΔΩ * sign.(x)))
80-
end
81-
return BLAS.asum(x), asum_pullback
82-
end
83-
8470
function rrule(::typeof(BLAS.asum), n, X, incx)
8571
Ω = BLAS.asum(n, X, incx)
8672
function asum_pullback(ΔΩ)

0 commit comments

Comments
 (0)