View source on GitHub |
Represents a resource to download, extract, or both.
tfds.download.Resource(
*,
url: Optional[str] = None,
extract_method: Optional[tfds.download.ExtractMethod
] = None,
path: Optional[epath.PathLike] = None
)
Attributes | |
---|---|
extract_method
|
Returns ExtractMethod to use on resource. Cannot be None.
|
Methods
exists_locally
@classmethod
exists_locally( path:
tfds.typing.PathLike
)
Returns whether the resource exists locally, at resource.path
.