Can I use cpu instead of gpu for the DeepLearningImageClassificationExample.m
이전 댓글 표시
I was running the "DeepLearningImageClassificationExample.m" example but this failed because of unsupported GPU. I did see that this example requires a "CUDA-capable GPU card" but is there a manner to to use the parameters ['ExecutionEnvironment','cpu'] in the "activation" function, and use the CPU instead?
답변 (1개)
Joss Knight
2017년 5월 31일
0 개 추천
댓글 수: 2
Fuad Noman
2020년 4월 17일
How?
Walter Roberson
2020년 4월 17일
On line 68 change
trainingFeatures = activations(net, augmentedTrainingSet, featureLayer, ...
'MiniBatchSize', 32, 'OutputAs', 'columns');
to
trainingFeatures = activations(net, augmentedTrainingSet, featureLayer, ...
'MiniBatchSize', 32, 'OutputAs', 'columns', 'ExecutionEnvironment', 'cpu');
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!