Oh, I didn’t know it, thank you.
I arleady posted everything involved in the line where I get the error.
The problem is that dataset_valid.dataset.targets has a lenght of 10000, but I can’t understand why since i used random_split with a lenght of 5000