def hard_sigmoid(x):
    x = (0.2 * x) + 0.5
    x = tf.clip_by_value(x, tf.cast(0., dtype=_FLOATX),
                         tf.cast(1., dtype=_FLOATX))
    return x
Builds list of fields for instance queries.
dataset/ETHPy150Open fchollet/keras/keras/backend/tensorflow_backend.py/hard_sigmoid--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/query.py/_BuildInstanceFields