@parameterized.parameters(np.float32, np.float64)
  def test_spence_small(self, dtype):
    x = np.random.uniform(0., 1., size=int(1e4)).astype(dtype)
    x_wt = _get_weak_tensor(x)
    y_wt = special_math_ops.spence(x_wt)