Error while using dct on gpu. Matrix dimensions must agree.

1 次查看(过去 30 天)
N=8;
A=gpuArray(rand(N,N,N));
B=dct(A);

回答(1 个)

Edric Ellis
Edric Ellis 2020-3-9
This appears to be a problem with the gpuArray version of dct. Thanks for reporting this.
  2 个评论
Paul Kry
Paul Kry 2022-3-31
Just installed 2022a, and get "Error using dct. Input gpuArray must be a vector or two-dimensional matrix." Any solution for this on the horizon?
Walter Roberson
Walter Roberson 2022-3-31
Reshape your input to the same number of rows and [] columns. dct() that. Reshape back.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by