# tf_privacy.TreeCumulativeSumQuery.GlobalState

<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/tree_aggregation_query.py#L88-L99) |

Class defining global state for Tree sum queries.

    tf_privacy.TreeCumulativeSumQuery.GlobalState(
        tree_state, clip_value, samples_cumulative_sum
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `tree_state` | Current state of noise tree keeping track of current leaf and each level state. |
| `clip_value` | The clipping value to be passed to clip_fn. |
| `samples_cumulative_sum` | Noiseless cumulative sum of samples over time. |

<br />