Skip to content

Commit 647284b

Browse files
author
Michael Abbott
committed
tidy
1 parent 1dee0cf commit 647284b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

src/deprecations.jl

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,23 +36,7 @@ end
3636
# To move to Zygote
3737

3838
using Base.Broadcast: broadcasted
39-
using Zygote.FillArrays: Fill
4039

41-
# for op in (:+, :-)
42-
# @eval begin
43-
44-
# Zygote.@adjoint function broadcasted(::typeof($op), a::AbstractArray{<:Number}, b::Bool)
45-
# y = b === false ? a : ($op).(a, b)
46-
# y, Δ -> (nothing, Δ, nothing)
47-
# end
48-
49-
# Zygote.@adjoint function broadcasted(::typeof($op), b::Bool, a::AbstractArray{<:Number})
50-
# y = b === false ? ($op)(a) : ($op).(b, a)
51-
# return y, Δ -> (nothing, nothing, (Δ))
52-
# end
53-
54-
# end
55-
# end
5640

5741
Zygote.@adjoint function broadcasted(::typeof(+), a::AbstractArray{<:Number}, b::Bool)
5842
y = b === false ? a : a .+ b
@@ -89,6 +73,3 @@ Zygote.@adjoint function broadcasted(::typeof(*), b::Bool, a::AbstractArray{<:Nu
8973
end
9074
end
9175

92-
93-
94-

0 commit comments

Comments
 (0)