If you want to make sure, both splits are balanced, you could get the target tensor and create the split indices using train_test_split and pass the target array to stratify.
The returned train and test indices can then be used in Subset to create the datasets.