Convert GPUArray back to regular array?

82 views (last 30 days)
Nathan Hughes
Nathan Hughes on 22 Jun 2017
Commented: Prb on 14 May 2019
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

Accepted Answer

Adam
Adam on 22 Jun 2017
Edited: Adam on 22 Jun 2017
doc gather
Make sure you select the one for the parallel computing toolbox though rather than tall arrays
  3 Comments
Walter Roberson
Walter Roberson on 14 May 2019
If you need to use that without a GPU, then it would be
B_forward = (bitshift((B_forward),Shifts(WeightLayerIndex)));

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!