Hi Jpj!



 jpj:

self.hidden_layer_1.weight.data = my_custom_weights should fix it?


I think that will fix it.
My preferred idiom (not that I know what I’m doing) would be:
with torch.no_grad():
    self.hidden_layer_1.weight.data.copy_(my_custom_weights) 

Best.
K. Frank