add fileContainer struct
This commit is contained in:
@@ -1,5 +1,85 @@
|
||||
module ANNUtils
|
||||
|
||||
greet() = print("Hello World!")
|
||||
export fileDataset
|
||||
|
||||
include("interface.jl")
|
||||
using .interface
|
||||
#------------------------------------------------------------------------------------------------100
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
end # module ANNUtils
|
||||
|
||||
|
||||
103
src/interface.jl
103
src/interface.jl
@@ -0,0 +1,103 @@
|
||||
module interface
|
||||
|
||||
export fileDataset
|
||||
|
||||
# using
|
||||
|
||||
|
||||
# function DataLoader(
|
||||
# dataFolder::String;
|
||||
# buffer = false,
|
||||
# parallel = false,
|
||||
# shuffle = false,
|
||||
# batchsize::Int = 1,
|
||||
# partial::Bool = true,
|
||||
# collate = Val(nothing),
|
||||
# rng::AbstractRNG = Random.GLOBAL_RNG)
|
||||
# buffer = buffer isa Bool ? buffer : true
|
||||
# collate = collate isa Val ? collate : Val(collate)
|
||||
# if !(collate ∈ (Val(nothing), Val(true), Val(false)))
|
||||
# throw(ArgumentError("`collate` must be one of `nothing`, `true` or `false`."))
|
||||
# end
|
||||
# return DataLoader(data, batchsize, buffer, partial, shuffle, parallel, collate, rng)
|
||||
# end
|
||||
|
||||
struct fileContainer{T<:Vector}
|
||||
data::T
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
end # module interface
|
||||
Reference in New Issue
Block a user