Changing weight after forward and before backward

Never change the .data attribute of a Variable. It breaks the invariant.