Does the latest version of MATLAB support fmincon with gpuarray?
5 ビュー (過去 30 日間)
古いコメントを表示
Dr. Veerababu Dharanalakota
2022 年 11 月 16 日
回答済み: Bruno Luong
2022 年 11 月 16 日
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 で Sequence and Numeric Feature Data Workflows についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!