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

답변 (1개)

Joss Knight
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.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by