Been a bit busy (and frustrating) I am still having issues. I was looking at the below link:
That persons problem was that the last layer wasn’t outputting the number of categories, but mine is implementing the correct number of layers resnet34.fc = nn.Linear(num_ftrs, 12).
The line that it says is not working is the loss = criteria(output, target) and printing the output and target gives one 12 x batch_size for output and batch_size x 1 for target.