def test_tf_linear_interp1d_against_scipy_interpolate(self):
    'Tests parity of TF linear interpolation with SciPy.'
    length = 10
    np_x = np.linspace(0, 1, length)
    np_y_interp = np.linspace(0.5, 1, length)
    test_data_np = np.linspace(0, 1, (length * 10))
    scipy_interp_outputs = self._get_scipy_interp1d(test_data_np, np_x, np_y_interp)
    np_tf_interp_outputs = self._get_tf_interp1d(test_data_np, np_x, np_y_interp)
    self.assertAllClose(scipy_interp_outputs, np_tf_interp_outputs)
Tests parity of TF linear interpolation with SciPy.
def test_tf_linear_interp1d_against_scipy_interpolate(self):
    
    length = 10
    np_x = np.linspace(0, 1, length)
    np_y_interp = np.linspace(0.5, 1, length)
    test_data_np = np.linspace(0, 1, (length * 10))
    scipy_interp_outputs = self._get_scipy_interp1d(test_data_np, np_x, np_y_interp)
    np_tf_interp_outputs = self._get_tf_interp1d(test_data_np, np_x, np_y_interp)
    self.assertAllClose(scipy_interp_outputs, np_tf_interp_outputs)