Thanks again for the answer and the references to the doc.
I think that to build a custom function is far from my knowledge of pytorch.
I think that I will multiply the data by \beta before doing the sigmoid function.
Most grateful