DataParallel使用
生活随笔
收集整理的這篇文章主要介紹了
DataParallel使用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
DataParallel' object has no attribute
https://github.com/yysijie/st-gcn/issues/83
self.model.extract_feature -> self.model.module.extract_featurepytorch 多GPU訓(xùn)練總結(jié)(DataParallel的使用)
https://blog.csdn.net/weixin_40087578/article/details/87186613
if arg.cuda:model=model.cuda() #這里將模型復(fù)制到gpu ,默認(rèn)是cuda('0'),即轉(zhuǎn)到第一個GPU 2 if len(device_id)>1:model=torch.nn.DaraParallel(model);#前提是model已經(jīng).cuda() 了?
總結(jié)
以上是生活随笔為你收集整理的DataParallel使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: python同花顺交易接口_TradeA
- 下一篇: Google编程规范中文文档,非常详细