Skip to content

Commit

Permalink
Merge pull request #10 from mashu/dg/data
Browse files Browse the repository at this point in the history
Relax type of returned values by DataLoader i…
  • Loading branch information
DhairyaLGandhi authored Dec 10, 2021
2 parents cff2999 + 3166552 commit 14645b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/dataloader.jl
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ function DataLoader(f,
fs = map(feat -> getindex(feat,
ntuple(i -> i == batchdim(feat) ? ix : Colon(), length(size(feat)))...), args)
iterator = Iterators.partition(ix, batchsize)
ch = Channel{typeof(args)}(buffersize)
ch = Channel(buffersize)
t = Task(() -> begin
for i in iterator
fullbatch = length(i) == batchsize
Expand Down

0 comments on commit 14645b4

Please sign in to comment.