[null,null,["Last updated 2024-09-20 UTC."],[],[],null,["# tff.analytics.heavy_hitters.iblt.create_chunker\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [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) |\n\nCreates a `Chunker` for the given specification. \n\n tff.analytics.heavy_hitters.iblt.create_chunker(\n *,\n string_max_bytes: int,\n encoding: ../../../../tff/analytics/heavy_hitters/iblt/CharacterEncoding = ../../../../tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8,\n max_chunk_value: Optional[int] = None,\n dtype: tf.dtypes.DType = _DEFAULT_DTYPE\n ) -\u003e Chunker\n\n| **Note:** not all parameters are supported by all Chunkers. See chunker subclass documentation for details.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `string_max_bytes` | Maximum length of the string to encode, in bytes. |\n| `encoding` | The character encoding of the string data to encode. For non-character binary data or strings with unknown encoding, specify [`CharacterEncoding.UNKNOWN`](../../../../tff/analytics/heavy_hitters/iblt/CharacterEncoding#UNKNOWN). Defaults to [`CharacterEncoding.UTF8`](../../../../tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8). |\n| `max_chunk_value` | Maximum value in each chunk. Defaults to the maximum possible value in dtype. Only used with [`CharacterEncoding.UTF8`](../../../../tff/analytics/heavy_hitters/iblt/CharacterEncoding#UTF8). |\n| `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). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Chunker` instance. ||\n\n\u003cbr /\u003e"]]