Skip to content

Commit 91fe82d

Browse files
committed
requires fixup
1 parent b919324 commit 91fe82d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/activation.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const sigmoid = σ
1313

1414
σ(x::Float32) = σ_stable(x)
1515

16-
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
16+
@init @require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
1717
σ(x::ForwardDiff.Dual{T,Float32}) where T = σ_stable(x)
1818
end
1919

src/numeric.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@ log_fast(x::Union{Int32,Int64}) = log_fast(float(x))
8181

8282
# Derivatives
8383

84-
@require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
84+
@init @require ForwardDiff="f6369f11-7733-5829-9624-2563aa707210" begin
8585
function log_fast(d::ForwardDiff.Dual{T,<:Union{Float32,Float64}}) where T
8686
x = ForwardDiff.value(d)
8787
Dual{T}(log_fast(x), inv(x) * ForwardDiff.partials(d))
8888
end
8989
end
90+
91+
@init @require DataFrames="a93c6f00-e57d-5684-b7b6-d8193f3e46c0" println("loaded")

0 commit comments

Comments
 (0)