Can you post your code for DataLoader specially trainloader or how you are creating the trainloader?
The labels shape [100,10] should be taken care by the DataLoader. If the data loaders are correct then 1 or 3 channel will also be taken care by the data loaders no need to change it manually.