def test_tf_linear_interp1d_interpolate(self):
    'Tests TF 1d linear interpolation not mapping to a single number.'

    def graph_fn():
        tf_x = tf.constant([0.0, 0.5, 1.0])
        tf_y = tf.constant([0.6, 0.7, 1.0])
        new_x = tf.constant([0.0, 0.25, 0.5, 0.75, 1.0])
        tf_interpolate_outputs = calibration_builder._tf_linear_interp1d(new_x, tf_x, tf_y)
        return tf_interpolate_outputs
    tf_interpolate_outputs_np = self.execute(graph_fn, [])
    self.assertAllClose(tf_interpolate_outputs_np, [0.6, 0.65, 0.7, 0.85, 1.0])
Tests TF 1d linear interpolation not mapping to a single number.
def test_tf_linear_interp1d_interpolate(self):
    

    def graph_fn():
        tf_x = tf.constant([0.0, 0.5, 1.0])
        tf_y = tf.constant([0.6, 0.7, 1.0])
        new_x = tf.constant([0.0, 0.25, 0.5, 0.75, 1.0])
        tf_interpolate_outputs = calibration_builder._tf_linear_interp1d(new_x, tf_x, tf_y)
        return tf_interpolate_outputs
    tf_interpolate_outputs_np = self.execute(graph_fn, [])
    self.assertAllClose(tf_interpolate_outputs_np, [0.6, 0.65, 0.7, 0.85, 1.0])