Skip to content

rely on patched datasets home rather than passing it around #5998

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

Merged
merged 5 commits into from
May 12, 2022

Conversation

pmeier
Copy link
Collaborator

@pmeier pmeier commented May 12, 2022

While working on #5990, I realized we don't need to pass the test_home to our mock data generation, since we later already rely on the patched version. With this PR, the preparation as well as the loading now rely on the patched home.

Note that this does not conflict with anything in #5990.

@@ -25,9 +25,10 @@ def extract_datapipes(dp):
return get_all_graph_pipes(traverse(dp, only_datapipe=True))


@pytest.fixture
@pytest.fixture(autouse=True)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this patch is now applied by default, if required, a test can still request this fixture the normal way.

Copy link
Member

@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Philip

@pmeier pmeier merged commit 90a729a into pytorch:main May 12, 2022
facebook-github-bot pushed a commit that referenced this pull request May 24, 2022
…5998)

Summary:
* rely on patched datasets home rather than passing it around

* add comment

Reviewed By: datumbox

Differential Revision: D36413359

fbshipit-source-id: cccff560e6e29da8401fab866a34ebe0fdde6b9a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants