How to change number CPU core used to train deep learning?

조회 수: 4 (최근 30일)
Lin
Lin 2020년 11월 10일
답변: Ameer Hamza 2020년 11월 10일
How to change the Execution Environment, number CPU core used to train deep learning model?

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 10일
Are you training using trainNetwork() function? If yes, then the function accepts an input "options". You can define the option using trainingoptions(): https://www.mathworks.com/help/releases/R2020b/deeplearning/ref/trainingoptions.html function. In the trainingoptions, there is a Name-Value pair called 'ExecutionEnvironment', you can set it to 'parallel' and it will use the number of cores according to your cluster profile. I guess you will need a parallel Computing toolbox for this. Read here on how to configure the cluster profile: https://www.mathworks.com/help/parallel-computing/discover-clusters-and-use-cluster-profiles.html

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by