richard:

What GPU are you running on?
CUDNN_STATUS_ARCH_MISMATCH usually means that your GPU doesn’t support CuDNN.
You can try setting torch.backends.cudnn.enabled to false so that pytorch doesn’t try to use CuDNN and then running your code.


my GPU support cuDnn.and resnet runed successly with same train code,I dont’ know why occured this error.Have you ever saw same error in the process of study.maybe densenet need other setting.I’m very distressed