Skip to content

Conversation

@ZhiweiYan-96
Copy link
Collaborator

@ZhiweiYan-96 ZhiweiYan-96 commented Aug 26, 2024

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 26, 2024

🔗 Helpful Links

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

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 ddd74a3 with merge base d14fe3f (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.

ZhiweiYan-96 added a commit that referenced this pull request Aug 26, 2024
@ZhiweiYan-96 ZhiweiYan-96 marked this pull request as draft August 26, 2024 08:55
X.suggest_memory_format() : at::MemoryFormat::Contiguous;

TORCH_CHECK(X.is_contiguous(memory_format));
TORCH_CHECK(X.is_contiguous(memory_format) || (X.device().is_xpu() && memory_format == at::MemoryFormat::Contiguous));
Copy link
Collaborator

Choose a reason for hiding this comment

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

X.device().is_xpu() && memory_format == at::MemoryFormat::Contiguous is always True. Because X.device().is_cpu() is False and then auto memory_format = at::MemoryFormat::Contiuous. So it means the statement is always True if X is an Intel GPU tensor. Is that expected?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, I change the code to make sure we have contiguous input&output always, this should be more proper than the above codes.

[ghstack-poisoned]
[ghstack-poisoned]
ZhiweiYan-96 added a commit that referenced this pull request Aug 27, 2024
[ghstack-poisoned]
[ghstack-poisoned]
ZhiweiYan-96 added a commit that referenced this pull request Aug 29, 2024
@ZhiweiYan-96 ZhiweiYan-96 added ciflow/xpu Run XPU CI tasks ciflow/trunk Trigger trunk jobs on your pull request topic: not user facing topic category labels Aug 29, 2024
@EikanWang EikanWang marked this pull request as ready for review September 2, 2024 06:08
[ghstack-poisoned]
ZhiweiYan-96 added a commit that referenced this pull request Sep 3, 2024
@EikanWang
Copy link
Collaborator

@pytorchbot merge

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request ciflow/xpu Run XPU CI tasks Merged open source topic: not user facing topic category

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants