message: Auto-wrap representative dataset in TFLiteConverterV2.
diff: @@ -320,11 +320,11 @@ class TFLiteConverterV2(object):
  if self.representative_dataset:
  if not isinstance(self.representative_dataset, RepresentativeDataset):
  - raise TypeError("`representative_dataset` must be an instance of "
  - "`RepresentativeDataset`")
  + self.representative_dataset = RepresentativeDataset(
  + self.representative_dataset)
  if self.representative_dataset.input_gen is None:
  raise ValueError(
  - "Provide an input generator for `representative_dataset`")
  + "Provide an input generator for representative_dataset")
  # TODO(shashishekhar): For now use optimizations order is ignored.
  # Both size and latency optimizations decide whether to apply post
  