Convert GPUArray back to regular array?

조회 수: 22 (최근 30일)
Nathan Hughes
Nathan Hughes 2017년 6월 22일
댓글: Prb 2019년 5월 14일
Hi,
I have some functions which I can use with an image when it is in GPUArray, other functions I have won't work with GPUArrays, how can I convert a GPUArray back into a regular array?
Many thanks

채택된 답변

Adam
Adam 2017년 6월 22일
편집: Adam 2017년 6월 22일
doc gather
Make sure you select the one for the parallel computing toolbox though rather than tall arrays
  댓글 수: 3
Walter Roberson
Walter Roberson 2019년 5월 14일
If you need to use that without a GPU, then it would be
B_forward = (bitshift((B_forward),Shifts(WeightLayerIndex)));
Prb
Prb 2019년 5월 14일
Thanks a lot

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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