Skip to content

Commit c46223c

Browse files
committed
ForwardDiffExt: Constrained dispatch to AbstractSIMD types
1 parent 4fd0f3d commit c46223c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ForwardDiffExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ end
142142
end
143143

144144
@generated function NNlib.relu(
145-
x::ForwardDiff.Dual{T,S,N}
145+
x::ForwardDiff.Dual{T,<:LoopVectorization.AbstractSIMD,N}
146146
) where {T,S,N}
147147
quote
148148
$(Expr(:meta, :inline))
@@ -159,7 +159,7 @@ end
159159
end
160160

161161
@generated function NNlib.leakyrelu(
162-
x::ForwardDiff.Dual{T,S,N},
162+
x::ForwardDiff.Dual{T,<:LoopVectorization.AbstractSIMD,N},
163163
a = 0.01
164164
) where {T,S,N}
165165
quote

0 commit comments

Comments
 (0)