phases = tf.reshape(
        tf.cast(params["phases"].get_value(), dtype=tf.float64),
        [params["phases"].get_value().shape[0], 1],