![]() |
Decode a IBLT sketch.
tff.analytics.heavy_hitters.iblt.decode_iblt_tensor_tf(
iblt: tf.Tensor,
iblt_values: tf.Tensor,
capacity: int,
string_max_length: int,
value_shape: Sequence[int],
*,
seed: int = 0,
repetitions: int = iblt_lib.DEFAULT_REPETITIONS,
hash_family: Optional[str] = None,
hash_family_params: Optional[Dict[str, Union[int, float]]] = None,
field_size: int = iblt_lib.DEFAULT_FIELD_SIZE
) -> Tuple[tf.Tensor, tf.Tensor, tf.Tensor, tf.Tensor]
This function wraps IbltDecoder
to decode iblt
and returns frequencies
of decoded strings.
Returns | |
---|---|
(out_strings, out_counts, out_tensor_counts num_not_decoded) where
out_strings is a tf.Tensor containing all the decoded strings,
out_counts is a tf.Tensor containing the counts of each string,
out_tensor_counts is a tf.Tensor containing tensor counts for each
decoded string and num_not_decoded is a tf.Tensor with the number of
items not decoded in the IBLT.
|