Get the dataset_id's path. dataset_cache_root/dataset_id. Args: dataset_id (str): The dataset id. Returns: str: The dataset_id's cache root path.
(dataset_id: str)
| 79 | |
| 80 | |
| 81 | def get_dataset_cache_dir(dataset_id: str) -> str: |
| 82 | """Get the dataset_id's path. |
| 83 | dataset_cache_root/dataset_id. |
| 84 | |
| 85 | Args: |
| 86 | dataset_id (str): The dataset id. |
| 87 | |
| 88 | Returns: |
| 89 | str: The dataset_id's cache root path. |
| 90 | """ |
| 91 | dataset_root = get_dataset_cache_root() |
| 92 | return dataset_root if dataset_id is None else os.path.join( |
| 93 | dataset_root, dataset_id + '/') |
| 94 | |
| 95 | |
| 96 | def get_model_cache_dir(model_id: str) -> str: |
nothing calls this directly
no test coverage detected
searching dependent graphs…