Does the latest version of MATLAB support fmincon with gpuarray?
조회 수: 3 (최근 30일)
이전 댓글 표시
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
채택된 답변
Bruno Luong
2022년 11월 16일
Discuss recently about this limitation of optimizer functions, no currently they won't support GPU array.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel and Cloud에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!