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(X)
dataset/ETHPy150Open sharadmv/deepx/deepx/nn/full.py/Tanlu.activate/original