Pytorch Torch I0
# PyTorch torch.i0 Function
* * PyTorch torch Reference Manual](#)
`torch.i0` is a PyTorch function for calculating the modified Bessel function of the first kind with order 0.
### Function Definition
torch.i0(input)
* * *
## Example Usage
## Example
import torch
# Calculate 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)
Output result:
I0(x): tensor([1.0000, 1.2661, 2.2796, 4.8808])
* * PyTorch torch Reference Manual](#)
YouTip