Hi guys,
I have a doubt, can I do this kind of operation without losing the gradient?
w = torch.zeros(1, M)
w[0][idx] = 1   # danger operation?
result = torch.mm(w, t2)

I want backprop on tensor t2, not on w