필터 지우기
필터 지우기

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

조회 수: 2 (최근 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 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