Question 1: Single choice
mediumAI-checkedPyTorchA pretrained DenseNet gets a new classifier and loss:
model.classifier = nn.Sequential(nn.Linear(1024, 256), nn.ReLU(), nn.Dropout(0.2),
nn.Linear(256, 2), nn.LogSoftmax(dim=1))
criterion = nn.NLLLoss()
Why is NLLLoss the right loss here rather than nn.CrossEntropyLoss?