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

1 回表示 (過去 30 日間)
Mohamed Gharbi
Mohamed Gharbi 2020 年 3 月 7 日
コメント済み: Walter Roberson 2022 年 3 月 31 日
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 Center および File ExchangeGPU Computing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by