Skip to content

Commit 592f03a

Browse files
Fix precompile warnings in Julia 1.12 (#559)
Remove unused type parameters in methods. Before: ```julia (@v1.12) pkg> precompile Precompiling packages finished. 38 dependencies successfully precompiled in 36 seconds. 704 already precompiled. 1 dependency had output during precompilation: ┌ LoopVectorization → ForwardDiffNNlibExt │ WARNING: method definition for relu at /home/hp74lr/.julia/dev/LoopVectorization/ext/ForwardDiffNNlibExt.jl:5 declares type variable S but does not use it. │ WARNING: method definition for leakyrelu at /home/hp74lr/.julia/dev/LoopVectorization/ext/ForwardDiffNNlibExt.jl:22 declares type variable S but does not use it. └ ``` After: ```julia (@v1.12) pkg> precompile Precompiling packages finished. 37 dependencies successfully precompiled in 34 seconds. 705 already precompiled. ```
1 parent 20918b1 commit 592f03a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/ForwardDiffNNlibExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using LoopVectorization, VectorizationBase, SLEEFPirates, ForwardDiff, NNlib
44

55
@generated function NNlib.relu(
66
x::ForwardDiff.Dual{T,<:LoopVectorization.AbstractSIMD,N}
7-
) where {T,S,N}
7+
) where {T,N}
88
quote
99
$(Expr(:meta, :inline))
1010
v = x.value
@@ -22,7 +22,7 @@ end
2222
@generated function NNlib.leakyrelu(
2323
x::ForwardDiff.Dual{T,<:LoopVectorization.AbstractSIMD,N},
2424
a = 0.01
25-
) where {T,S,N}
25+
) where {T,N}
2626
quote
2727
$(Expr(:meta, :inline))
2828
v = x.value

0 commit comments

Comments
 (0)