is there any problem with the NxCxHxW?, since the original script is used for MNIST data and model, which based on the 1-channel.
target shape: torch.Size([1])
data shape: torch.Size([1, 3, 224, 224])
init_pred shape: torch.Size([1, 1])