Hi Ptrblck,
I used thei command but dataloader works in correct, I think I should do sth before passing the index from split data. TrainData1 and  ValidationData1 are index.
    [TrainData1, ValidationData1]= train_test_split( np.arange(len(wholetargetArray)),train_size=0.7,test_size=0.3,stratify=wholetargetArray)
    trainloader=torch.utils.data.DataLoader(TrainData1, batch_size=64,shuffle=True,drop_last=True, num_workers=0)
    validationloader=torch.utils.data.DataLoader(ValidationData1, batch_size=6, drop_last=True,num_workers=0)```

what is your suggestion?

I appreciate your help