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 で Parallel and Cloud についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!