PyTorch torch.sinc function
PyTorch torch reference manual
torch.sinc is a function in PyTorch used to compute the element-wise sinc function. It is defined as sin(pix)/(pix).
Function definition
torch.sinc(input, out=None)
Usage examples
Example
import
torch
Compute the sinc function
x
=
torch.
tensor
(
[
0.0
,
1.0
,
1.0
]
)
result
=
torch.
sinc
(
x
)
(
result
)