(rng, d)
return rng
Equivalent of jax.random.fold_in.
Equivalent of jax.random.fold_in.
Equivalent of jax . random . fold_in .
def _fold_in(rng, d):
  """Equivalent of jax.random.fold_in."""
  # TODO(lukaszkaiser): verify that this function has good randomness
  # properties or switch to an implementation equivalent to JAX.
  _, rng = tf_np_extensions.split(rng + tf_np.sum(d).astype(tf_np.int64), 2)
  return rng
def _fold_in ( rng , d ) : # TODO(lukaszkaiser): verify that this function has good randomness # properties or switch to an implementation equivalent to JAX. _ , rng = tf_np_extensions . split ( rng + tf_np . sum ( d ) . astype ( tf_np . int64 ) , 2 ) return rng