

def call(self, x, mask=None):
    y = K.dot(x, self.W_carry)
    if self.bias:
        y += self.b_carry
    transform_weight = activations.sigmoid(y)
    y = K.dot(x, self.W)
    if self.bias:
        y += self.b
    act = self.activation(y)
    act *= transform_weight
    output = (act + ((1 - transform_weight) * x))
    return output

dataset/ETHPy150Open fchollet/keras/keras/layers/core.py Highway.call/original