Hi Sam!



 Sam_Lerman:

I saw that elsewhere, but it doesn’t help me compute a derivative by hand because I don’t know the exact function that torch::erf takes.


The function can be found in the documentation for torch.erf() 12.
More detail can be found in the wikipedia entry Error function 3.
As you can see, its derivative is just the probability density function
for the normal distribution.
Best.
K. Frank