# Module: tf_privacy.restart_query

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/privacy/blob/v0.9.0/privacy/privacy/dp_query/restart_query.py) |

Implements DPQuery interface for restarting the states of another query.

This query is used to compose with a DPQuery that has `reset_state` function.

## Classes

[`class PeriodicRoundRestartIndicator`](https://www.tensorflow.org/responsible_ai/privacy/api_docs/python/tf_privacy/restart_query/PeriodicRoundRestartIndicator): Indicator for resetting the tree state after every a few number of queries.

[`class PeriodicTimeRestartIndicator`](https://www.tensorflow.org/responsible_ai/privacy/api_docs/python/tf_privacy/restart_query/PeriodicTimeRestartIndicator): Indicator for periodically resetting the tree state after a certain time.

[`class RestartIndicator`](https://www.tensorflow.org/responsible_ai/privacy/api_docs/python/tf_privacy/restart_query/RestartIndicator): Base class establishing interface for restarting the tree state.

[`class RestartQuery`](https://www.tensorflow.org/responsible_ai/privacy/api_docs/python/tf_privacy/restart_query/RestartQuery): `DPQuery` for `SumAggregationDPQuery` with a `reset_state` function.