Skip to content

Conversation

pearu
Copy link
Collaborator

@pearu pearu commented Feb 29, 2024

Copy link

pytorch-bot bot commented Feb 29, 2024

🔗 Helpful Links

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

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

✅ You can merge normally! (4 Unrelated Failures)

As of commit 968a6cf with merge base 2e50566 (image):

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.

As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip

[ghstack-poisoned]
As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip

[ghstack-poisoned]
As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
pearu added a commit that referenced this pull request Feb 29, 2024
ghstack-source-id: fc6072e
Pull Request resolved: #120920
As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
pearu added a commit that referenced this pull request Feb 29, 2024
ghstack-source-id: aedaf66
Pull Request resolved: #120920
As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
pearu added a commit that referenced this pull request Feb 29, 2024
ghstack-source-id: 910b46a
Pull Request resolved: #120920
@pearu pearu marked this pull request as ready for review February 29, 2024 23:58
@pearu pearu requested a review from mruberry as a code owner February 29, 2024 23:58
@pearu pearu requested review from ezyang, cpuhrsch and amjames February 29, 2024 23:58
@cpuhrsch cpuhrsch requested a review from bdhirsh March 1, 2024 01:15
As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 aakhundov kadeng

[ghstack-poisoned]
pearu added a commit that referenced this pull request Mar 1, 2024
ghstack-source-id: a61a479
Pull Request resolved: #120920
elif is_sparse_compressed(t):
is_leaf = safe_is_leaf(t)

def mk_meta():
Copy link
Contributor

Choose a reason for hiding this comment

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

This function is weirdly a lot more complicated than the one in sparse_coo above, not sure if it's needed or not yet

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess the problem is you don't have a constructor that just directly takes sparse/dense dim and allocates those tensor under the hood, do you...

Copy link
Collaborator Author

@pearu pearu Mar 1, 2024

Choose a reason for hiding this comment

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

Exactly, we don't have _sparse_coo_tensor_with_dims-alike for sparse compressed tensors. I could expose one as an aten operator but does it matter if it is either implemented in Python (as above) or in C++? IIRC, their specification will be the same: construct as sparse compressed tensor with indices and values as empty tensors with device='meta' and nnz==0.
What do you think?

... not sure if it's needed or not yet

It surely appears to be needed as without it a bunch of dynamo tests is failing.

@ezyang
Copy link
Contributor

ezyang commented Mar 4, 2024

@pytorchbot merge

@pytorch-bot pytorch-bot bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 4, 2024
@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot
Copy link
Collaborator

Merge failed

Reason: Command git -C /home/runner/work/pytorch/pytorch cherry-pick -x 2735641bc1ba94a7fa67ca77e4c926b798d11d02 returned non-zero exit code 1

Auto-merging test/nn/test_embedding.py
CONFLICT (content): Merge conflict in test/nn/test_embedding.py
Auto-merging torch/_dynamo/variables/builder.py
Auto-merging torch/fx/experimental/symbolic_shapes.py
Auto-merging torch/testing/_internal/common_methods_invocations.py
error: could not apply 2735641bc1b... Add sparse compressed fake tensor support
hint: After resolving the conflicts, mark them with
hint: "git add/rm <pathspec>", then run
hint: "git cherry-pick --continue".
hint: You can instead skip this commit with "git cherry-pick --skip".
hint: To abort and get back to the state before "git cherry-pick",
hint: run "git cherry-pick --abort".
Details for Dev Infra team Raised by workflow job

As in the title.




cc alexsamardzic nikitaved cpuhrsch amjames bhosmer jcaip voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang aakhundov

[ghstack-poisoned]
pearu added a commit that referenced this pull request Mar 4, 2024
ghstack-source-id: 2de3882
Pull Request resolved: #120920
@pearu
Copy link
Collaborator Author

pearu commented Mar 4, 2024

@pytorchbot merge -f "The 4 CI failures are not related to the changes in the PR"

@pytorchmergebot
Copy link
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@thiagocrepaldi
Copy link
Collaborator

@pearu would #123345 be a corner case for this pr?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ciflow/inductor ciflow/trunk Trigger trunk jobs on your pull request Merged module: dynamo module: sparse Related to torch.sparse open source release notes: sparse release notes category topic: new features topic category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants