Solved by ptrblck in post #2 
              
              
                You can either assign the new weights via: 
with torch.no_grad():
    self.Conv1.weight = nn.Parameter(...)
    # or
    self.Conv1.weight.copy_(tensor)

and set their .requires_grad attribute to False to freeze them or alternatively you could also directly use the functional API: 
x = F.conv2d(inpu…