def gabor_filters(kernel, size: int = 401) -> tf.Tensor:
    """Computes the gabor filters from its parameters for a given size.

    Args:
      kernel: tf.Tensor<float>[filters, 2] the parameters of the Gabor kernels.
      size: the size of the output tensor.

    Returns:
      A tf.Tensor<float>[filters, size].
    """
    return gabor_impulse_response(
        tf.range(-(size // 2), (size + 1) // 2, dtype=tf.float32),
        center=kernel[:, 0], fwhm=kernel[:, 1])
Computes the gabor filters from its parameters for a given size.

    Args:
      kernel: tf.Tensor<float>[filters, 2] the parameters of the Gabor kernels.
      size: the size of the output tensor.

    Returns:
      A tf.Tensor<float>[filters, size].
    
leaf_audio/impulse_responses.py