def METHOD_NAME(self, input_shape):
    assert len(input_shape) >= 2
    input_dim = input_shape[0][-1]
    self.kernel = self.add_weight(
        shape=(self.K, input_dim, self.channels),
        initializer=self.kernel_initializer,
        name="kernel",
        regularizer=self.kernel_regularizer,
        constraint=self.kernel_constraint,
    )
    if self.use_bias:
        self.bias = self.add_weight(
            shape=(self.channels,),
            initializer=self.bias_initializer,
            name="bias",
            regularizer=self.bias_regularizer,
            constraint=self.bias_constraint,
        )
    self.built = True