shuffle=(train_sampler is None),
What are ‘pin_memory’ and ‘sampler’ here?
I could not understand this explanation.
“sampler (Sampler, optional): defines the strategy to draw samples from the dataset. If specified,
shuffle must be False.”
And, Is it true that using ‘pin_memory=True’ will speed up the GPU operation, but will it run out of memory soon?