DataParallel' object has no attribute
https://github.com/yysijie/st-gcn/issues/83
self.model.extract_feature -> self.model.module.extract_feature
pytorch 多GPU训练总结(DataParallel的使用)
https://blog.youkuaiyun.com/weixin_40087578/article/details/87186613
if arg.cuda:
model=model.cuda() #这里将模型复制到gpu ,默认是cuda('0'),即转到第一个GPU 2
if len(device_id)>1:
model=torch.nn.DaraParallel(model);#前提是model已经.cuda() 了