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일

1 개 추천

doc gather
Make sure you select the one for the parallel computing toolbox though rather than tall arrays

댓글 수: 3

Hi I have the similar question. Could you please explain how can do with this line of code
if Shifts(WeightLayerIndex) ~= 0
B_forward = gpuArray(bitshift(gather(B_forward),Shifts(WeightLayerIndex)));
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개)

카테고리

도움말 센터File Exchange에서 GPU Computing에 대해 자세히 알아보기

질문:

2017년 6월 22일

댓글:

Prb
2019년 5월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by