I would like to train a smallish network using cpu cores in parallel rather than gpu as they are slower.
1 回表示 (過去 30 日間)
古いコメントを表示
aaDL.options.ValidationFrequency = 50;
%aaDL.options.ExecutionEnvironment = 'cpu';
aaDL.options.ExecutionEnvironment = 'parallel'; % as an alternative
0 件のコメント
回答 (1 件)
Joss Knight
2023 年 9 月 8 日
setenv CUDA_VISIBLE_DEVICES -1
when you first start MATLAB, assuming you are running everything locally.
However, as a general rule you can't gain any benefit training in parallel on the CPU on a single machine. MATLAB is already running everything multithreaded.
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!