def __init__(self, name='sincnet', **kwargs):
        """Constructor of a SincNet frontend.

        Args:
          name: name of the layer.
          **kwargs: Arguments passed to Leaf, except conv1d_cls, complex_conv_init,
            activation, pooling_cls, compression_fn and name which are already
            fixed.
        """

        super().__init__(conv1d_cls=convolution.SincConv1D,
                         complex_conv_init=initializers.SincInit(),
                         activation=tf.keras.layers.LeakyReLU(alpha=0.2),
                         pooling_cls=pooling.MaxPooling1D,
                         compression_fn=tf.keras.layers.LayerNormalization(),
                         name=name,
                         **kwargs)
Constructor of a SincNet frontend.

        Args:
          name: name of the layer.
          **kwargs: Arguments passed to Leaf, except conv1d_cls, complex_conv_init,
            activation, pooling_cls, compression_fn and name which are already
            fixed.
        
leaf_audio/frontend.py