add fileContainer struct

This commit is contained in:
ton
2023-04-16 10:31:43 +07:00
parent 43a5e3d0e3
commit 5843898d7d
3 changed files with 184 additions and 1 deletions

0
etc.jl Normal file
View File

View File

@@ -1,5 +1,85 @@
module ANNUtils
greet() = print("Hello World!")
export fileDataset
include("interface.jl")
using .interface
#------------------------------------------------------------------------------------------------100
end # module ANNUtils

View File

@@ -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