

def activate(self, X):
    alpha = self.parameters['alpha']
    constrained_alpha = T.clip(alpha, 0, 1)
    return ((constrained_alpha * T.tanh(X)) + ((1 - constrained_alpha) * T.relu(alpha)))

dataset/ETHPy150Open sharadmv/deepx/deepx/nn/full.py Tanlu.activate/VarMisuse@58/70 `X`->`alpha`