def sinc(t):
    """sinc.

    :param t: the input tensor
    """
    return th.where(t == 0, th.tensor(1., device=t.device, dtype=t.dtype),
                    th.sin(t) / t)
sinc.

:param t: the input tensor
examples/speech_synthesis/preprocessing/denoiser/resample.py