DeepCTR-Torch icon indicating copy to clipboard operation
DeepCTR-Torch copied to clipboard

deepFM 多gpu报错

Open GodeWithWind opened this issue 2 years ago • 3 comments

RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cuda:1! 下面是代码

model = DeepFM(linear_feature_columns=linear_feature_columns, dnn_feature_columns=dnn_feature_columns, task='binary', device=device, gpus=[0, 1], dnn_dropout=0.5)

GodeWithWind avatar Oct 29 '22 07:10 GodeWithWind