def __call__(self, x, leak):
        f1 = 0.5 * (1 + leak)
        f2 = 0.5 * (1 - leak)
        if leak.ndim == 1:
            return T.flatten(f1, 1)[0] * x + T.flatten(f2, 1)[0] * abs(x)
        else:
            return f1 * x + f2 * abs(x)
dataset/ETHPy150Open IndicoDataSolutions/Foxhound/foxhound/activations.py/Prelu.__call__/original