Skip to content

Commit 71f5619

Browse files
committed
Remove undefined export
1 parent dce2ccb commit 71f5619

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/RecursiveArrayTools.jl

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,24 @@ include("tabletraits.jl")
3131
include("array_partition.jl")
3232
include("zygote.jl")
3333

34-
Base.show(io::IO, x::Union{ArrayPartition,AbstractVectorOfArray}) = invoke(show, Tuple{typeof(io), Any}, io, x)
34+
function Base.show(io::IO, x::Union{ArrayPartition, AbstractVectorOfArray})
35+
invoke(show, Tuple{typeof(io), Any}, io, x)
36+
end
3537

3638
import GPUArraysCore
3739
Base.convert(T::Type{<:GPUArraysCore.AbstractGPUArray}, VA::AbstractVectorOfArray) = T(VA)
38-
ChainRulesCore.rrule(T::Type{<:GPUArraysCore.AbstractGPUArray}, xs::AbstractVectorOfArray) = T(xs), ȳ -> (NoTangent(),ȳ)
40+
function ChainRulesCore.rrule(T::Type{<:GPUArraysCore.AbstractGPUArray},
41+
xs::AbstractVectorOfArray)
42+
T(xs), ȳ -> (NoTangent(), ȳ)
43+
end
3944

4045
export VectorOfArray, DiffEqArray, AbstractVectorOfArray, AbstractDiffEqArray,
41-
AllObserved, vecarr_to_arr, vecarr_to_vectors, tuples
46+
AllObserved, vecarr_to_vectors, tuples
4247

4348
export recursivecopy, recursivecopy!, recursivefill!, vecvecapply, copyat_or_push!,
4449
vecvec_to_mat, recursive_one, recursive_mean, recursive_bottom_eltype,
4550
recursive_unitless_bottom_eltype, recursive_unitless_eltype
4651

47-
4852
export ArrayPartition
4953

50-
5154
end # module

0 commit comments

Comments
 (0)