From 5843898d7dc9df5019f28d801d463413fed4a628 Mon Sep 17 00:00:00 2001 From: ton Date: Sun, 16 Apr 2023 10:31:43 +0700 Subject: [PATCH] add fileContainer struct --- etc.jl | 0 src/ANNUtils.jl | 82 ++++++++++++++++++++++++++++++++++++- src/interface.jl | 103 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 etc.jl diff --git a/etc.jl b/etc.jl new file mode 100644 index 0000000..e69de29 diff --git a/src/ANNUtils.jl b/src/ANNUtils.jl index 6435409..4c3b5e7 100644 --- a/src/ANNUtils.jl +++ b/src/ANNUtils.jl @@ -1,5 +1,85 @@ module ANNUtils -greet() = print("Hello World!") +export fileDataset + +include("interface.jl") +using .interface +#------------------------------------------------------------------------------------------------100 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + end # module ANNUtils + diff --git a/src/interface.jl b/src/interface.jl index e69de29..e23c614 100644 --- a/src/interface.jl +++ b/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 \ No newline at end of file