错误使用 gpuDevice (line 26) Invalid CUDA device id: 3. Select a device id from the range 1:1.

2 ビュー (過去 30 日間)
w
w 2019 年 12 月 6 日
回答済み: 埃博拉酱 2024 年 10 月 21 日
Start using dagnn.DetLoss for loss
cnn_train_dag_hardmine: resetting GPU
错误使用 cnn_train_dag_hardmine>prepareGPUs (line 616)
Error detected on workers 3 4.
出错 cnn_train_dag_hardmine (line 132)
prepareGPUs(opts, epoch == start+1) ;
出错 cnn_widerface (line 212)
[net, info] = trainFn(net, imdb, getBatchFn(batchGetter, opts, net.meta), ...
出错 hr_res101 (line 41)
cnn_widerface('inputSize', inputSize, ...
原因:
错误使用 gpuDevice (line 26)
Invalid CUDA device id: 3. Select a device id from the range 1:1.
错误使用 gpuDevice (line 26)
Invalid CUDA device id: 4. Select a device id from the range 1:1.

回答 (1 件)

埃博拉酱
埃博拉酱 2024 年 10 月 21 日
你只有一个GPU,但程序试图访问第3、4个GPU,就会有这种问题。

カテゴリ

Help Center および File ExchangeGPU Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!