Skip to content
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

[Not for Commit] Example use of new dim_order api #8289

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

digantdesai
Copy link
Contributor

Just for API usage illustration purposes

❯ python -m unittest exir.tests.test_memory_format_ops_pass.TestMemoryFormatOpsPass.test_op_dim_order_propagation

test_op_dim_order_propagation: unambiguous path
node: dim_order_ops__to_dim_order_copy_default, shape: torch.Size([2, 2, 2, 2]), dim_order: (0, 2, 3, 1)
node: aten_add_tensor, shape: torch.Size([2, 2, 2, 2]), dim_order: (0, 2, 3, 1)
node: aten_mul_tensor, shape: torch.Size([2, 2, 2, 2]), dim_order: (0, 2, 3, 1)

test_op_dim_order_propagation: ambiguous path
node: dim_order_ops__to_dim_order_copy_default, shape: torch.Size([2, 1, 2, 2]), 
E
======================================================================
ERROR: test_op_dim_order_propagation (exir.tests.test_memory_format_ops_pass.TestMemoryFormatOpsPass)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "[...]executorch/exir/tests/test_memory_format_ops_pass_utils.py", line 137, in detect_ambiguity
    dim_order = tensor.dim_order(
  File "[...]]/executorch/lib/python3.10/site-packages/torch/_tensor.py", line 1614, in dim_order
    raise RuntimeError(
RuntimeError: The tensor does not have unique dim order, or cannot map to exact one of the given memory formats.
...

Copy link

pytorch-bot bot commented Feb 6, 2025

🔗 Helpful Links

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

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

❌ 5 New Failures

As of commit 48726b5 with merge base d01810e (image):

NEW FAILURES - The following jobs have 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 Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

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

Just for API usage illustration purposes
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.

2 participants