Skip to content

Switch to DataLoader::load in runtime #4217

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 2 commits into from

Conversation

jackzhxng
Copy link
Contributor

@jackzhxng jackzhxng commented Jul 11, 2024

Summary

  • Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
  • Adds tests for the load function

Follow-ups planned in diff stack

  • Currently program.cpp is passing in a hardcoded"backend_segment" as the descriptor, but in a follow-up will pass in the actual backend id.
  • Test Constant segment case

Diff stack:

  • ( ) [1/n][executorch] Introduce new DataLoader::load() with segment info
  • (x) [2/n][executorch] Switch to DataLoader::load in runtime
  • ( ) [3/n][executorch] Pass in correct backend id into data load from runtime

Differential Revision: D59594142

Copy link

pytorch-bot bot commented Jul 11, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/4217

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 0ba5f7d with merge base d159de2 (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@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 Jul 11, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

jackzhxng added a commit to jackzhxng/executorch that referenced this pull request Jul 11, 2024
Summary:
Pull Request resolved: pytorch#4217

Description
- Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
- Adds tests for the load function

Follow-ups planned in diff stack
- (D59606243) Currently `program.cpp` is passing in a hardcoded`"backend_segment"` as the descriptor, but in a follow-up will pass in the actual backend id.
- Test `Constant` segment case

Diff stack:
- (  ) [[1/n][executorch] Introduce new DataLoader::load() with segment info](https://www.internalfb.com/diff/D59399538?dst_version_fbid=2979141262226992)
- (**x**) [[2/n][executorch] Switch to DataLoader::load in runtime](https://www.internalfb.com/diff/D59594142)
- (  ) [[3/n][executorch] Pass in correct backend id into data load from runtime](https://www.internalfb.com/diff/D59606243)

Differential Revision: D59594142
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

jackzhxng added a commit to jackzhxng/executorch that referenced this pull request Jul 12, 2024
Summary:
Pull Request resolved: pytorch#4217

Description
- Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
- Adds tests for the load function

Follow-ups planned in diff stack
- (D59606243) Currently `program.cpp` is passing in a hardcoded`"backend_segment"` as the descriptor, but in a follow-up will pass in the actual backend id.
- Test `Constant` segment case

Diff stack:
- (  ) [[1/n][executorch] Introduce new DataLoader::load() with segment info](https://www.internalfb.com/diff/D59399538?dst_version_fbid=2979141262226992)
- (**x**) [[2/n][executorch] Switch to DataLoader::load in runtime](https://www.internalfb.com/diff/D59594142)
- (  ) [[3/n][executorch] Pass in correct backend id into data load from runtime](https://www.internalfb.com/diff/D59606243)

Reviewed By: dbort

Differential Revision: D59594142
Summary: Adds a new DataLoader::load() function with an additonal parameter, SegmentInfo.

Differential Revision: D59399538
jackzhxng added a commit to jackzhxng/executorch that referenced this pull request Jul 13, 2024
Summary:
Pull Request resolved: pytorch#4217

Description
- Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
- Adds tests for the load function

Follow-ups planned in diff stack
- (D59606243) Currently `program.cpp` is passing in a hardcoded`"backend_segment"` as the descriptor, but in a follow-up will pass in the actual backend id.
- Test `Constant` segment case

Diff stack:
- (  ) [[1/n][executorch] Introduce new DataLoader::load() with segment info](https://www.internalfb.com/diff/D59399538?dst_version_fbid=2979141262226992)
- (**x**) [[2/n][executorch] Switch to DataLoader::load in runtime](https://www.internalfb.com/diff/D59594142)
- (  ) [[3/n][executorch] Pass in correct backend id into data load from runtime](https://www.internalfb.com/diff/D59606243)

Reviewed By: dbort

Differential Revision: D59594142
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

jackzhxng added a commit to jackzhxng/executorch that referenced this pull request Jul 13, 2024
Summary:
Pull Request resolved: pytorch#4217

Description
- Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
- Adds tests for the load function

Follow-ups planned in diff stack
- (D59606243) Currently `program.cpp` is passing in a hardcoded`"backend_segment"` as the descriptor, but in a follow-up will pass in the actual backend id.
- Test `Constant` segment case

Diff stack:
- (  ) [[1/n][executorch] Introduce new DataLoader::load() with segment info](https://www.internalfb.com/diff/D59399538?dst_version_fbid=2979141262226992)
- (**x**) [[2/n][executorch] Switch to DataLoader::load in runtime](https://www.internalfb.com/diff/D59594142)
- (  ) [[3/n][executorch] Pass in correct backend id into data load from runtime](https://www.internalfb.com/diff/D59606243)

Reviewed By: dbort

Differential Revision: D59594142
Summary:
Pull Request resolved: pytorch#4217

Description
- Makes the appropriate changes in runtime code to deprecate DataLoader::Load in favor of DataLoader::load with SegmentInfo.
- Adds tests for the load function

Follow-ups planned in diff stack
- (D59606243) Currently `program.cpp` is passing in a hardcoded`"backend_segment"` as the descriptor, but in a follow-up will pass in the actual backend id.
- Test `Constant` segment case

Diff stack:
- (  ) [[1/n][executorch] Introduce new DataLoader::load() with segment info](https://www.internalfb.com/diff/D59399538?dst_version_fbid=2979141262226992)
- (**x**) [[2/n][executorch] Switch to DataLoader::load in runtime](https://www.internalfb.com/diff/D59594142)
- (  ) [[3/n][executorch] Pass in correct backend id into data load from runtime](https://www.internalfb.com/diff/D59606243)

Reviewed By: dbort

Differential Revision: D59594142
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D59594142

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in c7e407e.

@jackzhxng jackzhxng deleted the export-D59594142 branch July 18, 2024 23:55
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. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants