def METHOD_NAME(self, window_size, sigma):
    gauss = torch.Tensor([
        np.exp(-(x - (window_size // 2))**2 / float(2 * sigma**2))
        for x in range(window_size)
    ])
    return gauss / gauss.sum()