Skip to content

Commit db7af8c

Browse files
Update ForwardDiffExt.jl
1 parent 7671a4f commit db7af8c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/ForwardDiffExt.jl

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,15 +268,6 @@ function ChainRulesCore.rrule(::typeof(sigmoid_fast), x)
268268
end
269269
s, ∂
270270
end
271-
function ChainRulesCore.rrule(::typeof(relu), v)
272-
z = zero(v)
273-
cmp = v < z
274-
r = ifelse(cmp, z, v)
275-
= let cmp = cmp
276-
y -> (ChainRulesZero(), ifelse(cmp, zero(y), y))
277-
end
278-
r, ∂
279-
end
280271

281272
function ∂vmap_singlethread!(
282273
f::F,

0 commit comments

Comments
 (0)