Skip to content

Cleanup #11077

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Cleanup #11077

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow_datasets/core/subsplits_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def even_splits(
not evenly divisible by `n`. If `False`, examples are distributed evenly
across subsplits, starting by the first. For example, if there is 11
examples with `n=3`, splits will contain `[4, 4, 3]` examples
respectivelly.
respectively.

Returns:
The list of subsplits. Those splits can be combined together (with
Expand Down Expand Up @@ -169,7 +169,7 @@ def split_for_jax_process(
not evenly divisible by `n`. If `False`, examples are distributed evenly
across subsplits, starting by the first. For example, if there is 11
examples with `n=3`, splits will contain `[4, 4, 3]` examples
respectivelly.
respectively.

Returns:
subsplit: The sub-split of the given `split` for the current
Expand Down
4 changes: 2 additions & 2 deletions tensorflow_datasets/testing/dataset_builder_testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def setUp(self):
# The `dl_manager.download` and `dl_manager.download_and_extract` are
# patched to record the urls in `_download_urls`.
# Calling `dl_manager.download_checksums` stop the url
# registration (as checksums are stored remotelly)
# registration (as checksums are stored remotely)
# `_test_checksums` validates the recorded urls.
self._download_urls = set()
self._stop_record_download = False
Expand Down Expand Up @@ -291,7 +291,7 @@ def test_tags_are_valid(self):
def _add_url(self, url_or_urls):
if self._stop_record_download:
# Stop record the checksums if dl_manager.download_checksums has been
# called (as checksums may be stored remotelly)
# called (as checksums may be stored remotely)
return
if isinstance(url_or_urls, download.resource.Resource):
self._download_urls.add(url_or_urls.url)
Expand Down
2 changes: 1 addition & 1 deletion tensorflow_datasets/testing/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def mock(self):
with self._mock() as m:
yield m
self._tmp_dir = None
# TODO(epot): recursivelly record all
# TODO(epot): recursively record all

def _to_tmp(self, p, *, with_state: bool = False):
"""Normalize the path by returning `tmp_path / p`."""
Expand Down