def __call__(self, h, control):
    data = tf.concat(1, [h, control])
    candidate = tf.nn.sigmoid(tf.matmul(data, self.H))
    update = tf.nn.sigmoid(tf.matmul(data,  self.T))
    return update * candidate + (1 - update) * h
dataset/ETHPy150Open Smerity/tf-ham/ham.py/Write.__call__/original