tf.lite.RepresentativeDataset

View source on GitHub

Representative dataset to evaluate optimizations.

tf.lite.RepresentativeDataset(
    input_gen
)

A representative dataset that can be used to evaluate optimizations by the converter. E.g. converter can use these examples to estimate (min, max) ranges by calibrating the model on inputs. This can allow converter to quantize a converted floating point model.

Args: