Okay but when i try to directly modify the weights without using .data it gives me an error.
Oh yes i see what you mean, if you could please tell me how do we overwrite the weights before the forward propagation step?