Hi,
This does work:
m = nn.Linear(10, 10)
del m.weight
m.weight = torch.rand(10)

If you try to print the weight after the del, you should get that you module has no attribute ‘weight’, is that what you get?