# tff.analytics.heavy_hitters.iblt.create_chunker

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/federated/blob/v0.87.0 Version 2.0, January 2004 Licensed under the Apache License, Version 2.0 (the) |

Creates a `Chunker` for the given specification.

    tff.analytics.heavy_hitters.iblt.create_chunker(
        *,
        string_max_bytes: int,
        encoding: https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters/iblt/CharacterEncoding = https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8,
        max_chunk_value: Optional[int] = None,
        dtype: tf.dtypes.DType = _DEFAULT_DTYPE
    ) -> Chunker

> [!NOTE]
> **Note:** not all parameters are supported by all Chunkers. See chunker subclass documentation for details.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `string_max_bytes` | Maximum length of the string to encode, in bytes. |
| `encoding` | The character encoding of the string data to encode. For non-character binary data or strings with unknown encoding, specify [`CharacterEncoding.UNKNOWN`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters/iblt/CharacterEncoding#UNKNOWN). Defaults to [`CharacterEncoding.UTF8`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8). |
| `max_chunk_value` | Maximum value in each chunk. Defaults to the maximum possible value in dtype. Only used with [`CharacterEncoding.UTF8`](https://www.tensorflow.org/federated/api_docs/python/tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8). |
| `dtype` | [`tf.dtypes.DType`](https://www.tensorflow.org/api_docs/python/tf/dtypes/DType) indicating the data type of the output. Must be either [`tf.int32`](https://www.tensorflow.org/api_docs/python/tf#int32) or [`tf.int64`](https://www.tensorflow.org/api_docs/python/tf#int64). Defaults to [`tf.int64`](https://www.tensorflow.org/api_docs/python/tf#int64). |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A `Chunker` instance. ||

<br />