Convert GPUArray back to regular array?

22 Ansichten (letzte 30 Tage)
Nathan Hughes
Nathan Hughes am 22 Jun. 2017
Kommentiert: Prb am 14 Mai 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

Akzeptierte Antwort

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

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu GPU Computing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by