How to restrict train() function to a select gpu pool?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hello, I would like to restrict the train() function to run on gpuDevice(2) and gpuDevice(3) respectively while excluding gpuDevice(1) in my system. How would I change this code provided on the reference website to do this?
Note in the example above the function configure was used to set the dimensions and processing settings of the network's inputs. This normally happens automatically when train is called, but when providing gpuArray data this step must be done manually with non-gpuArray data.
Using only workers with unique GPUs might result in higher speed, as CPU workers might not keep up.
net = train(net,X,T,'useParallel','yes','useGPU','only');
Y = net(X);
When running, it executes on all gpus available.
댓글 수: 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!