Hi All,
I write the following code to update the gradient manually, but I meet the following error
`

RuntimeError: element 0 of variables tuple is volatile

`
and the parameter.volatile is True, but why will this operation change the volatility of parameter?

import torch
from torch.autograd import Variable
torch.manual_seed(1024)

input = Variable(torch.rand(100, 12))
parameter = Variable(torch.rand(100, 12), requires_grad=True, volatile=False)

for i in range(10):
    loss = ((input*parameter).abs()-1).abs().sum()
    print(loss)
    loss.backward()
    parameter = parameter - (0.01 * parameter.grad)


Any suggestion will be helpful.
Thank you!