Skip to content

Commit 9396fd4

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "TaylorDiff"
22
uuid = "b36ab563-344f-407b-a36a-4f200bebf99c"
33
authors = ["Songchen Tan <[email protected]>"]
4-
version = "0.2.2"
4+
version = "0.2.3"
55

66
[deps]
77
ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"

src/chainrules.jl

+1-1
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)