TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tfds.download.GenerateMode

View source

Class GenerateMode

Enum for how to treat pre-existing downloads and data.

Aliases:

The default mode is REUSE_DATASET_IF_EXISTS, which will reuse both raw downloads and the prepared dataset if they exist.

The generations modes:

Downloads Dataset
REUSE_DATASET_IF_EXISTS (default) Reuse Reuse
REUSE_CACHE_IF_EXISTS Reuse Fresh
FORCE_REDOWNLOAD Fresh Fresh

Class Members

  • FORCE_REDOWNLOAD
  • REUSE_CACHE_IF_EXISTS
  • REUSE_DATASET_IF_EXISTS