How does the shuffle parameter in DataLoader works? Is it related to "cross validation"?"

Only “training data” gets shuffled before every epoch and the validation data remains the same for each epoch??..

or it gets shuffled all together with the “validation data”?

And the other question is… if shuffle=True is not cross validation, how could I make cross validation (dividing data in folds and changing the validation fold) instead of using the regular method?

Thanks in advance!

The shuffling is only so that the batches that are seen by the model are different during every epoch. If you want to do cross-validation, you want to separate the data into a training and validation set before building the dataloaders.