You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any downsides to defining something like this? Or should it be done at some other level?
I think that the straightforward interpretation of mapobs(f, dataloader) is that f is applied to the mini-batches from the dataloader, while in DataLoader(mapobs(f, d.data)) it is applied to single observations.
We can specialize mapobs(f, d::DataLoader) to return a DataLoader with collate function f ∘ batch though.
I think the last case here should work like the 2nd-last, i.e. put the
mapobs
inside:Are there any downsides to defining something like this? Or should it be done at some other level?
The text was updated successfully, but these errors were encountered: