# This formula gives us the log sigmoid of 1-p if y is 0 and of p if y is 1
invprobs = F.logsigmoid(-input * (target * 2 - 1))
when target=0, invprobs=input, and when target=1, invprobes=-input.
These should be values of (1-input) and input according to the formula.
But I'm not sure, please tell me where I miss if I'm wrong.
when target=0, invprobs=input, and when target=1, invprobes=-input. These should be values of (1-input) and input according to the formula. But I'm not sure, please tell me where I miss if I'm wrong.