I want to train a densenet121 model from torchvision package, but the error massage indicated that module name can’t contain ’ . ’  , I checked the code and found that “self.add_module(‘norm.1’, nn.BatchNorm2d(num_input_features))” seems to be the source of error. How can I solve this problem and import the pretrained model correctly.
Thank you.