Skip to content

Commit aa21863

Browse files
committed
Remove type piracy with Zygote
1 parent 9e4b171 commit aa21863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chainrules.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ accum_sum(xs::AbstractArray{T}; dims = :) where {T <: TaylorScalar} = sum(xs, di
7878

7979
TaylorNumeric{T <: TaylorScalar} = Union{T, AbstractArray{<:T}}
8080

81-
@adjoint function broadcasted(::typeof(+), xs::Union{Numeric, TaylorNumeric}...)
81+
@adjoint function broadcasted(::typeof(+), xs::TaylorNumeric...)
8282
broadcast(+, xs...), ȳ -> (nothing, map(x -> unbroadcast(x, ȳ), xs)...)
8383
end
8484

0 commit comments

Comments
 (0)