meridian.backend.RNGHandler

A stateless-style RNG handler for TensorFlow.

This handler canonicalizes any seed input into a single stateless seed Tensor.

seed The initial seed. Can be an integer, a sequence of two integers, a corresponding Tensor, or None. It will be sanitized and stored internally as a single stateless seed Tensor.

Methods

advance_handler

View source

Creates a new handler from a new seed and advances the current handler.

get_kernel_seed

View source

Provides the current stateless seed of the handler without advancing it.

get_next_seed

View source

Returns a new unique seed and advances the handler's internal state.