PyTorch requires module attributes to be nn.Parameter or None. torch.empty can't be assigned to a registered parameter slot.