ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

tf_privacy.restart_query.RestartIndicator

Base class establishing interface for restarting the tree state.

A RestartIndicator maintains a state, and each time next is called, a bool value is generated to indicate whether to restart, and the indicator state is advanced.

Methods

initialize

View source

Makes an initialized state for RestartIndicator.

Returns
An initial state.

next

View source

Gets next bool indicator and advances the RestartIndicator state.

Args
state The current state.

Returns
A pair (value, new_state) where value is bool indicator and new_state is the advanced state.