Convert GPUArray back to regular array?

79 visualizaciones (últimos 30 días)
Nathan Hughes
Nathan Hughes el 22 de Jun. de 2017
Comentada: Prb el 14 de Mayo de 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

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by