for p in meta_i3d.parameters():
new_val = p - 0.0001 * p.grad
p.copy_(new_val)
I am doing this to update parameter values but getting an error i.e. “RuntimeError: a leaf Variable that requires grad is being used in an in-place operation.”
Is there any workaround for this? i am working on meta-learning and need to update the weights without calling optimizer.step()