There is a tensor which I want to learn, except for one variable in the tensor. In fact, I would like the entry of this tensor not to be a variable and, moreover, change the value of this entry in the forward pass so that I can take into account two passes with two different values of that entry into my loss function. Is this possible and if so, how to achieve it?