Ejemplo n.º 1
0
def list_builders(
    *,
    with_community_datasets: bool = True,
) -> List[str]:
    """Returns the string names of all `tfds.core.DatasetBuilder`s."""
    datasets = registered.list_imported_builders()
    return datasets
Ejemplo n.º 2
0
def list_builders(
    *,
    with_community_datasets: bool = True,
) -> List[str]:
    """Returns the string names of all `tfds.core.DatasetBuilder`s."""
    datasets = registered.list_imported_builders()
    if with_community_datasets:
        if visibility.DatasetType.COMMUNITY_PUBLIC.is_available():
            datasets += community.community_register.list_builders()
    return datasets
Ejemplo n.º 3
0
def _iter_full_names(current_version_only: bool) -> Iterator[str]:
    """Yield all registered datasets full_names (see `list_full_names`)."""
    for builder_name in registered.list_imported_builders():
        builder_cls_ = builder_cls(builder_name)
        for full_name in _iter_single_full_names(
                builder_name,
                builder_cls_,
                current_version_only=current_version_only,
        ):
            yield full_name
Ejemplo n.º 4
0
def _iter_full_names(
    predicate_fn: Optional[PredicateFn],
    current_version_only: bool,
) -> Iterator[str]:
    """Yield all registered datasets full_names (see `list_full_names`)."""
    for builder_name in registered.list_imported_builders():
        builder_cls_ = builder_cls(builder_name)
        # Only keep requested datasets
        if predicate_fn is not None and not predicate_fn(builder_cls_):
            continue
        for full_name in _iter_single_full_names(
                builder_name,
                builder_cls_,
                current_version_only=current_version_only,
        ):
            yield full_name
Ejemplo n.º 5
0
def list_builders() -> List[str]:
    """Returns the string names of all `tfds.core.DatasetBuilder`s."""
    datasets = registered.list_imported_builders()
    return datasets