Skip to content

Switching to use FileOpener instead of FileLoader #148

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

Closed
wants to merge 6 commits into from

Conversation

NivekT
Copy link
Contributor

@NivekT NivekT commented Dec 23, 2021

Stack from ghstack:

This PR is dependent on pytorch/pytorch#70367, which renames FileLoader to FileOpener in PyTorch. Core library. Then, this PR switches all TorchData usage of FileLoader to FileOpener. Downstream users need to be aware of this.

Fixes #103.

cc: @ejguan @VitalyFedyunin @pmeier @Nayef211

Differential Revision: D33368187

NivekT added a commit that referenced this pull request Dec 23, 2021
…FileOpener as well

ghstack-source-id: 65a46cf
Pull Request resolved: #148
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 23, 2021
@NivekT
Copy link
Contributor Author

NivekT commented Dec 23, 2021

Note that, since pytorch/pytorch#70367 has not landed, the CI tests here are expected to fail.

Copy link
Contributor

@ejguan ejguan left a comment

Choose a reason for hiding this comment

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

LGTM as long as all tests passed. Please also inform vision and text team for this change.

…g to IoPathFileOpener as well"


This PR is dependent on pytorch/pytorch#70367, which renames `FileLoader` to `FileOpener` in PyTorch. Core library. Then, this PR switches all `TorchData` usage of `FileLoader` to `FileOpener`, as well as renaming `IoPathFileLoader` to `IoPathFileOpener` (the functional name changes as well). Downstream users of those DataPipes please be aware of that.

Fixes #103.

cc: ejguan @VitalyFedyunin pmeier @Nayef211

[ghstack-poisoned]
@NivekT NivekT changed the title Switching to use FileOpener instead of FileLoader, renaming to IoPathFileOpener as well Switching to use FileOpener instead of FileLoader Dec 30, 2021
@NivekT
Copy link
Contributor Author

NivekT commented Dec 30, 2021

@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This PR is dependent on pytorch/pytorch#70367, which renames `FileLoader` to `FileOpener` in PyTorch. Core library. Then, this PR switches all `TorchData` usage of `FileLoader` to `FileOpener`. Downstream users need to be aware of this.

Fixes #103.

cc: ejguan @VitalyFedyunin pmeier @Nayef211

Differential Revision: [D33368187](https://our.internmc.facebook.com/intern/diff/D33368187)

[ghstack-poisoned]
@NivekT
Copy link
Contributor Author

NivekT commented Jan 4, 2022

@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This PR is dependent on pytorch/pytorch#70367, which renames `FileLoader` to `FileOpener` in PyTorch. Core library. Then, this PR switches all `TorchData` usage of `FileLoader` to `FileOpener`. Downstream users need to be aware of this.

Fixes #103.

cc: ejguan @VitalyFedyunin pmeier @Nayef211

Differential Revision: [D33368187](https://our.internmc.facebook.com/intern/diff/D33368187)

[ghstack-poisoned]
@NivekT
Copy link
Contributor Author

NivekT commented Jan 4, 2022

@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This PR is dependent on pytorch/pytorch#70367, which renames `FileLoader` to `FileOpener` in PyTorch. Core library. Then, this PR switches all `TorchData` usage of `FileLoader` to `FileOpener`. Downstream users need to be aware of this.

Fixes #103.

cc: ejguan @VitalyFedyunin pmeier @Nayef211

Differential Revision: [D33368187](https://our.internmc.facebook.com/intern/diff/D33368187)

[ghstack-poisoned]
@NivekT
Copy link
Contributor Author

NivekT commented Jan 5, 2022

@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

This PR is dependent on pytorch/pytorch#70367, which renames `FileLoader` to `FileOpener` in PyTorch. Core library. Then, this PR switches all `TorchData` usage of `FileLoader` to `FileOpener`. Downstream users need to be aware of this.

Fixes #103.

cc: ejguan @VitalyFedyunin pmeier @Nayef211

Differential Revision: [D33368187](https://our.internmc.facebook.com/intern/diff/D33368187)

[ghstack-poisoned]
@NivekT
Copy link
Contributor Author

NivekT commented Jan 5, 2022

@NivekT has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

NivekT added a commit to pytorch/text that referenced this pull request Jan 5, 2022
TorchData is changing its API, renaming `FileLoader` to `FileOpener`
This PR should be landed after pytorch/data#148 is merged (the CI for this PR is expected to fail until then as well)


[ghstack-poisoned]
NivekT added a commit to pytorch/text that referenced this pull request Jan 5, 2022
TorchData is changing its API, renaming `FileLoader` to `FileOpener`
This PR should be landed after pytorch/data#148 is merged (the CI for this PR is expected to fail until then as well)


[ghstack-poisoned]
ejguan added a commit that referenced this pull request Jan 5, 2022
Fixes #158 
Reverts the change of notebook from #148 


Differential Revision: [D33437356](https://our.internmc.facebook.com/intern/diff/D33437356)

[ghstack-poisoned]
ejguan added a commit that referenced this pull request Jan 5, 2022
Fixes #158 
Reverts the change of notebook from #148 


Differential Revision: [D33437356](https://our.internmc.facebook.com/intern/diff/D33437356)

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot deleted the gh/NivekT/19/head branch January 9, 2022 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants