def f_tf(x):
    x = tf.tile(tf.reshape(x, shape=((- 1), 1, input_dim)), multiples=(1, 4, 1))
    val = ((tf.constant(2.58, dtype) + tf.reduce_sum((alpha_tf * tf.exp((- tf.reduce_sum(((A_tf * (x - P_tf)) * (x - P_tf)), axis=2)))), axis=1)) / tf.constant(1.94, dtype))
    return (val * tf.cast(10.0, dtype))
def f_tf(x):
    x = tf.tile(tf.reshape(x, shape=((- 1), 1, input_dim)), multiples=(1, 4, 1))
    val = ((tf.constant(2.58, dtype) + tf.reduce_sum((alpha_tf * tf.exp((- tf.reduce_sum(((A_tf * (x - P_tf)) * (x - P_tf)), axis=2)))), axis=1)) / tf.constant(1.94, dtype))
    return (val * tf.cast(10.0, dtype))