Hi,
I would need to compute the exponential integral as in SciPy (scipy.special.expi — SciPy v1.6.2 Reference Guide 5) on a torch tensor without dettaching the gradients (so going through numpy is not an option as far as I understand).
I have seen that there is a torch.special module (torch.special — PyTorch master documentation 1) where some of the functions of scipy.special are being implemented. I was wondering if there are plans to implement the expi function and if somebody can give me an idea on how to proceed in the meanwhile.
I have found this notebook (Exponential_Integral_Python) which gives 2 implementations which use the quad function from scipy.integrate. Would there be a way to proceed like this using Pytorch?
Thanks.