PyTorch torch.i0 Function
PyTorch torch Reference Manual
torch.i0It is a function in PyTorch used to compute the modified Bessel function of the first kind with order 0.
Function Definition
torch.i0(input)
Usage Example
Example
import torch
# Compute the modified Bessel function of the first kind
x = torch.tensor([0.0, 1.0, 2.0, 3.0])
y = torch.i0(x)
print("I0(x):", y)
# Compute the modified Bessel function of the first kind
x = torch.tensor([0.0, 1.0, 2.0, 3.0])
y = torch.i0(x)
print("I0(x):", y)
The output result is:
I0(x): tensor([1.0000, 1.2661, 2.2796, 4.8808])
Other Extensions