def _condition_l_moments_sparse(
    current_index, unused_l1_sum, unused_l2_sum, unused_l3_sum, unused_l4_sum,
    unused_count_samples, unused_count_pairs, unused_count_triplets,
    unused_count_quadruplets, x_rank_2):
  """Condition for the loop that computes L-moments for a `SparseTensor`."""
  return tf.less(current_index, x_rank_2.dense_shape[1])
Condition for the loop that computes L-moments for a `SparseTensor`.
tensorflow_transform/tf_utils.py