Skip to content

Commit

Permalink
Fix cow tensor
Browse files Browse the repository at this point in the history
  • Loading branch information
CuiYifeng committed Dec 20, 2024
1 parent d7e546b commit 87c07e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ATen/native/xpu/mkl/SpectralOps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ void _mkl_dft(
{(long)(workspaceSizeBytes / sizeof(double))},
input.options().dtype(at::kDouble),
c10::nullopt);
desc.set_workspace((double*)workspaceBuf.data_ptr());
desc.set_workspace((double*)workspaceBuf.mutable_data_ptr());

auto in_data = (scalar_t*)input.data_ptr();
auto out_data = (scalar_t*)output.data_ptr();
auto in_data = (scalar_t*)input.const_data_ptr();
auto out_data = (scalar_t*)output.mutable_data_ptr();

sycl::event event;
if (!inverse) {
Expand Down

0 comments on commit 87c07e0

Please sign in to comment.