Have Pytorch provided a function for this? I failed to find it.
No, there are no functions to do it. Once you have a dataset class it should be quite easy to do it with a for loop.
1 Like
Thanks for your reply. I see.