You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DifferentiationInterface/ext/DifferentiationInterfaceFastDifferentiationExt/DifferentiationInterfaceFastDifferentiationExt.jl
Copy file name to clipboardExpand all lines: DifferentiationInterface/ext/DifferentiationInterfaceForwardDiffExt/DifferentiationInterfaceForwardDiffExt.jl
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -50,16 +50,22 @@ using LinearAlgebra: dot, mul!
50
50
51
51
DI.check_available(::AutoForwardDiff) =true
52
52
53
-
DI.pick_batchsize(::AutoForwardDiff{C}, dimension::Integer) where {C} =Val(C)
53
+
function DI.pick_batchsize(
54
+
::AutoForwardDiff{chunksize}, dimension::Integer
55
+
) where {chunksize}
56
+
returnVal{chunksize}()
57
+
end
54
58
55
59
function DI.pick_batchsize(::AutoForwardDiff{nothing}, dimension::Integer)
56
60
# type-unstable
57
61
returnVal(ForwardDiff.pickchunksize(dimension))
58
62
end
59
63
60
-
function DI.threshold_batchsize(backend::AutoForwardDiff{C1}, C2::Integer) where {C1}
Copy file name to clipboardExpand all lines: DifferentiationInterface/ext/DifferentiationInterfacePolyesterForwardDiffExt/DifferentiationInterfacePolyesterForwardDiffExt.jl
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,8 @@ using PolyesterForwardDiff: threaded_gradient!, threaded_jacobian!
22
22
using PolyesterForwardDiff.ForwardDiff: Chunk
23
23
using PolyesterForwardDiff.ForwardDiff.DiffResults: DiffResults
24
24
25
-
functionsingle_threaded(backend::AutoPolyesterForwardDiff{C,T}) where {C,T}
26
-
returnAutoForwardDiff{C,T}(backend.tag)
25
+
functionsingle_threaded(backend::AutoPolyesterForwardDiff{chunksize,T}) where {chunksize,T}
0 commit comments