def METHOD_NAME(self, inputs, mask=None):
    x, a = inputs
    mode = ops.autodetect_mode(x, a)
    x = K.dot(x, self.kernel)
    if mode == ops.modes.SINGLE:
        output = self._call_single(x, a)
    elif mode == ops.modes.BATCH:
        output = self._call_batch(x, a)
    if self.use_bias:
        output = K.bias_add(output, self.bias)
    if mask is not None:
        output *= mask[0]
    output = self.activation(output)
    return output