PyTorch Forums
Changing weight after forward and before backward
SimonW
(Simon Wang)
December 15, 2017, 12:37am
7
Never change the .data attribute of a Variable. It breaks the invariant.
How to dynamically modify parameters (specifically weights) during forward pass?
show post in topic