norse.torch.functional.receptive_field.gaussian_kernel

norse.torch.functional.receptive_field.gaussian_kernel#

norse.torch.functional.receptive_field.gaussian_kernel(size: int, c: Tensor, domain: int = 8) Tensor[source]#

Efficiently creates a differentiable 2d gaussian kernel.

Arguments:

size (int): The size of the kernel c (torch.Tensor): A 2x2 covariance matrix describing the eccentricity of the gaussian domain (int): The domain of the kernel. Defaults to 8 (sampling -8 to 8).