Skip to content

Commit 91c2481

Browse files
Cut out extra requires
Requires SciML/SciMLSensitivity.jl#575 kind of, but not really, it's just a small optimization
1 parent 55640bb commit 91c2481

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/init.jl

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
function __init__()
2-
@require ApproxFun="28f2ccd6-bb30-5033-b560-165f7b14dc2f" begin
3-
RecursiveArrayTools.recursive_unitless_eltype(a::ApproxFun.Fun) = typeof(a)
4-
RecursiveArrayTools.recursive_unitless_bottom_eltype(a::ApproxFun.Fun) = recursive_unitless_bottom_eltype(ApproxFun.coefficients(a))
5-
RecursiveArrayTools.recursive_bottom_eltype(a::ApproxFun.Fun) = recursive_bottom_eltype(ApproxFun.coefficients(a))
6-
end
7-
82
@require CUDA="052768ef-5323-5732-b1bb-66c8b64840ba" begin
93
function CUDA.CuArray(VA::AbstractVectorOfArray)
104
vecs = vec.(VA.u)
@@ -13,12 +7,4 @@ function __init__()
137
Base.convert(::Type{<:CUDA.CuArray},VA::AbstractVectorOfArray) = CUDA.CuArray(VA)
148
ChainRulesCore.rrule(::Type{<:CUDA.CuArray},xs::AbstractVectorOfArray) = CUDA.CuArray(xs), ȳ -> (NoTangent(),ȳ)
159
end
16-
17-
@require Tracker="9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c" begin
18-
function recursivecopy!(b::AbstractArray{T,N},a::AbstractArray{T2,N}) where {T<:Tracker.TrackedArray,T2<:Tracker.TrackedArray,N}
19-
@inbounds for i in eachindex(a)
20-
b[i] = copy(a[i])
21-
end
22-
end
23-
end
2410
end

0 commit comments

Comments
 (0)