Does the latest version of MATLAB support fmincon with gpuarray?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dr. Veerababu Dharanalakota
am 16 Nov. 2022
Beantwortet: Bruno Luong
am 16 Nov. 2022
Hi,
I am using fmincon() with Hessian approximation 'lbfgs' to train my network. By default the network is getting trained using CPU power. To take the advantage of GPU power (to reduce execution time), I tried to change my input variable into gpu arrays using 'gpuArray()' and run the program. However, it showing the following runtime error
"FMINCON requires all values returned by functions to be of data type double".
Currently, I am using R2022a version.
I would be grateful if someone can help me with this issue with an example.
Thanks in advance.
0 Kommentare
Akzeptierte Antwort
Bruno Luong
am 16 Nov. 2022
Discuss recently about this limitation of optimizer functions, no currently they won't support GPU array.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Parallel and Cloud 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!