Skip to content

Conversation

LeeOHzzZ
Copy link
Contributor

Summary:
Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Differential Revision: D82129824

@LeeOHzzZ LeeOHzzZ requested a review from lucylq as a code owner September 10, 2025 18:00
Copy link

pytorch-bot bot commented Sep 10, 2025

🔗 Helpful Links

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

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

❌ 2 Cancelled Jobs, 2 Pending, 3 Unrelated Failures

As of commit bf92de2 with merge base 8a0a25b (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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

@meta-cla meta-cla 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 Sep 10, 2025
@facebook-github-bot
Copy link
Contributor

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

Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

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

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

LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:
Pull Request resolved: pytorch#14165

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Differential Revision: D82129824
LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Differential Revision: D82129824
LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Reviewed By: lucylq

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

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:
Pull Request resolved: pytorch#14165

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Reviewed By: lucylq

Differential Revision: D82129824
LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Reviewed By: lucylq

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

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

LeeOHzzZ pushed a commit to LeeOHzzZ/executorch that referenced this pull request Sep 10, 2025
Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Reviewed By: lucylq

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

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

Summary:

Compare full input key value when retrieving named data.

Previous implementation iterates through the key values, comparing the input key value up to the length of the iterated key value length. This causes wrong data access when there is a key before this value and has partial match in the front part, e.g., "delegate_1" and "delegate_10".

Reviewed By: lucylq

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

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

@facebook-github-bot facebook-github-bot merged commit 62a60d6 into pytorch:main Sep 12, 2025
193 of 206 checks passed
StrycekSimon pushed a commit to nxp-upstream/executorch that referenced this pull request Sep 23, 2025
Differential Revision: D82129824

Pull Request resolved: pytorch#14165
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants