Skip to content

Commit

Permalink
Using the latest device-agnostic api in Context (#934)
Browse files Browse the repository at this point in the history
There are some code refactorings for Context in PyTorch repo, refer to
[this](pytorch/pytorch#136519) to get more info,
we want to merge this pr in torch-xpu-ops first and then update the
pin-commit in PyTorch to make the ci workflow green in PyTorch.
  • Loading branch information
FFFrog authored Sep 30, 2024
1 parent 9d5ed2e commit 7be5a9d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/ATen/native/xpu/sycl/ResizeKernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ void resize_bytes_xpu(StorageImpl* storage, size_t size_bytes) {
c10::xpu::XPUGuard guard(device.index());
at::DataPtr data = allocator->allocate(size_bytes);
if (storage->data_ptr()) {
at::globalContext().lazyInitXPU();
auto q = at::xpu::getCurrentSYCLQueue();

q.memcpy(
Expand Down

0 comments on commit 7be5a9d

Please sign in to comment.