pytorch - 💡(How to fix) Fix [PyTorch CI] XPU windows build failed due to https://github.com/pytorch/pytorch/pull/185421

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

C:\actions-runner_work\pytorch\pytorch\third_party\torch-xpu-ops\src\ATen\native\xpu\sycl\ResizeKernel.cpp(77,60): error: invalid operands to binary expression ('IntArrayRef' (aka 'ArrayRef<long long>') and 'at::OptionalIntArrayRef' (aka 'OptionalArrayRef<long long>')) 77 | if (self->sizes() == size && (!stride || self->strides() == stride)) {

Root Cause

Reason not caught

Due to https://github.com/pytorch/pytorch/pull/185421 We didn't catch it earlier because the Windows CI was canceled (unstable CI) last week, so the relevant tests were not exercised.

Fix Action

How to fix

  1. fix the build error in torch-xpu-ops
  2. update the commit pin

cc @malfet @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @nkhasbag-nv @pytorch/pytorch-dev-infra @gujinghui @EikanWang @fengyuan14

Code Example

C:\actions-runner\_work\pytorch\pytorch\third_party\torch-xpu-ops\src\ATen\native\xpu\sycl\ResizeKernel.cpp(77,60): error: invalid operands to binary expression ('IntArrayRef' (aka 'ArrayRef<long long>') and 'at::OptionalIntArrayRef' (aka 'OptionalArrayRef<long long>'))
   77 |   if (self->sizes() == size && (!stride || self->strides() == stride)) {
RAW_BUFFERClick to expand / collapse

🐛 Describe the bug

Operating System

Windows

Error Log

C:\actions-runner\_work\pytorch\pytorch\third_party\torch-xpu-ops\src\ATen\native\xpu\sycl\ResizeKernel.cpp(77,60): error: invalid operands to binary expression ('IntArrayRef' (aka 'ArrayRef<long long>') and 'at::OptionalIntArrayRef' (aka 'OptionalArrayRef<long long>'))
   77 |   if (self->sizes() == size && (!stride || self->strides() == stride)) {

CI Job URL

https://github.com/pytorch/pytorch/actions/runs/26702110210/job/78696778243

Reason not caught

Due to https://github.com/pytorch/pytorch/pull/185421 We didn't catch it earlier because the Windows CI was canceled (unstable CI) last week, so the relevant tests were not exercised.

How to fix

  1. fix the build error in torch-xpu-ops
  2. update the commit pin

cc @malfet @peterjc123 @mszhanyi @skyline75489 @nbcsm @iremyux @Blackhex @nkhasbag-nv @pytorch/pytorch-dev-infra @gujinghui @EikanWang @fengyuan14

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

pytorch - 💡(How to fix) Fix [PyTorch CI] XPU windows build failed due to https://github.com/pytorch/pytorch/pull/185421