shenweichen / DeepCTR-Torch

【PyTorch】Easy-to-use,Modular and Extendible package of deep-learning based CTR models.
https://deepctr-torch.readthedocs.io/en/latest/index.html
Apache License 2.0
2.95k stars 696 forks source link

can developer add change basemodel class device attribute? #272

Open myhaa opened 1 year ago

myhaa commented 1 year ago

I trained the model on the GPU and predicted the model on the CPU. An error was reported。

zanshuxun commented 1 year ago

Please add more infomation for us to reproduce the error.

Describe the bug(问题描述) A clear and concise description of what the bug is.

To Reproduce(复现步骤) Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Operating environment(运行环境):

Additional context Add any other context about the problem here.