This function allow external datasets not present in the tfds repository to
define their own checksums_dir containing the dataset downloads checksums.
# Set-up the folder containing the 'my_dataset.txt' checksums.checksum_dir=os.path.join(os.path.dirname(__file__),'checksums/')checksum_dir=os.path.normpath(checksum_dir)# Add the checksum dir (will be executed when the user import your dataset)tfds.download.add_checksums_dir(checksum_dir)classMyDataset(tfds.core.DatasetBuilder):...
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tfds.deprecated.add_checksums_dir\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/datasets/blob/v4.9.3/tensorflow_datasets/core/download/checksums.py#L78-L112) |\n\nRegisters a new checksums dir.\n\n#### View aliases\n\n\n**Main aliases**\n\n[`tfds.download.add_checksums_dir`](https://www.tensorflow.org/datasets/api_docs/python/tfds/deprecated/add_checksums_dir)\n\n\u003cbr /\u003e\n\n tfds.deprecated.add_checksums_dir(\n checksums_dir: str\n ) -\u003e None\n\nThis function allow external datasets not present in the tfds repository to\ndefine their own checksums_dir containing the dataset downloads checksums.\n**Note:** When redistributing your dataset, you should distribute the checksums files with it and set `add_checksums_dir` when the user is importing your `my_dataset.py`. \n\n # Set-up the folder containing the 'my_dataset.txt' checksums.\n checksum_dir = os.path.join(os.path.dirname(__file__), 'checksums/')\n checksum_dir = os.path.normpath(checksum_dir)\n\n # Add the checksum dir (will be executed when the user import your dataset)\n tfds.download.add_checksums_dir(checksum_dir)\n\n class MyDataset(tfds.core.DatasetBuilder):\n ...\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-----------------|---------------------------------------------|\n| `checksums_dir` | `str`, checksums dir to add to the registry |\n\n\u003cbr /\u003e"]]