Skip to content

Conversation

Gasoonjia
Copy link
Contributor

Summary: the strides used in the runtime is regenerated from dim order, we need to make sure the regenerated dim order behaves the same as original one, rather than regenerated dim order is exactly the same as original one. This diff update the comparsion rule to reach the goal.

Differential Revision: D77759383

@Gasoonjia Gasoonjia requested a review from shoumikhin as a code owner July 8, 2025 18:38
Copy link

pytorch-bot bot commented Jul 8, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure, 1 Unrelated Failure

As of commit a89e9ea with merge base 14085eb (image):

NEW FAILURE - The following job has failed:

BROKEN TRUNK - The following job 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.

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Jul 8, 2025
@facebook-github-bot
Copy link
Contributor

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

Copy link

github-actions bot commented Jul 8, 2025

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.

Gasoonjia added a commit to Gasoonjia/executorch-1 that referenced this pull request Jul 8, 2025
…ch#12280)

Summary:

the strides used in the runtime is regenerated from dim order, we need to make sure the regenerated dim order behaves the same as original one, rather than regenerated dim order is exactly the same as original one. This diff update the comparsion rule to reach the goal.

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

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

EXPECT_EQ(tensor->size(1), 2);
EXPECT_EQ(tensor->size(2), 2);

// recalculated stride[0]t o 2 to meet ET's requirement while maintain the
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

EXPECT_EQ(tensor->const_data_ptr<float>()[0], 3);
}

TEST_F(TensorPtrMakerTest, FailedCreateTensorUsingFromBlobWithIleegalStrides) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Typo

…ch#12280)

Summary:

the strides used in the runtime is regenerated from dim order, we need to make sure the regenerated dim order behaves the same as original one, rather than regenerated dim order is exactly the same as original one. This diff update the comparsion rule to reach the goal.

Reviewed By: larryliu0820

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

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

@facebook-github-bot facebook-github-bot merged commit dd43946 into pytorch:main Jul 9, 2025
95 of 99 checks passed
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
Differential Revision: D77759383

Pull Request resolved: pytorch#12280
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