-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
batchsize=Inf
or something?
#144
Comments
What is the use-case for this over doing something like |
The use is functions like this, which load data & make two |
Ah I see! That makes sense when creating multiple |
You could almost use julia> DataLoader([1 2 3; 4 5 6]; batchsize=99, partial=false) |> collect
┌ Warning: Number of observations less than batch-size, decreasing the batch-size to 3
└ @ MLUtils ~/.julia/packages/MLUtils/KcBtS/src/batchview.jl:95
┌ Warning: Number of observations less than batch-size, decreasing the batch-size to 3
└ @ MLUtils ~/.julia/packages/MLUtils/KcBtS/src/batchview.jl:95
1-element Vector{Matrix{Int64}}:
[1 2 3; 4 5 6] |
It would be nice if you could
DataLoader
for one maximal-size batch, without knowing the size of the inputs.This would mean that a function which loads some data, pre-processes it, and then returns a
DataLoader
could easily be used to return the full dataset, in the identical format, as long as it passes the keywordbatchsize
along.Could be
batchsize=0
, since-1
already does something special. Although unfortunately 0 is not an error right now.The text was updated successfully, but these errors were encountered: