Skip to content

Commit

Permalink
fix bug #261
Browse files Browse the repository at this point in the history
  • Loading branch information
zanshuxun committed Feb 11, 2023
1 parent f685425 commit 5d03ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepctr_torch/models/basemodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def forward(self, X, sparse_feat_refine_weight=None):

sparse_embedding_list += varlen_embedding_list

linear_logit = torch.zeros([X.shape[0], 1]).to(self.device)
linear_logit = torch.zeros([X.shape[0], 1]).to(self.weight.device)
if len(sparse_embedding_list) > 0:
sparse_embedding_cat = torch.cat(sparse_embedding_list, dim=-1)
if sparse_feat_refine_weight is not None:
Expand Down

0 comments on commit 5d03ead

Please sign in to comment.