MCPcopy Create free account
hub / github.com/tensorflow/datasets / _make_dataset

Function _make_dataset

tensorflow_datasets/conftest.py:120–127  ·  view source on GitHub ↗
(
    tmp_path_factory: pytest.TempPathFactory,
    builder_cls: Type[dataset_builder.DatasetBuilder],
)

Source from the content-addressed store, hash-verified

118
119
120def _make_dataset(
121 tmp_path_factory: pytest.TempPathFactory,
122 builder_cls: Type[dataset_builder.DatasetBuilder],
123) -> dataset_builder.DatasetBuilder:
124 tmp_path = tmp_path_factory.mktemp(f'global_{builder_cls.__name__}')
125 builder = builder_cls(data_dir=tmp_path)
126 builder.download_and_prepare()
127 return builder
128
129
130@pytest.fixture(scope='session')

Callers 2

dummy_mnistFunction · 0.85
dummy_datasetFunction · 0.85

Calls 2

builder_clsFunction · 0.85
download_and_prepareMethod · 0.45

Tested by

no test coverage detected