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
3k stars 703 forks source link

在models.basemodel中为何没有forward函数呢 #258

Closed grapefruitofwbb closed 2 years ago

grapefruitofwbb commented 2 years ago

basemodel中的BaseModel类,没有定义forward函数,那这样是如何定义模型结构的呢? 求解答

grapefruitofwbb commented 2 years ago

sorry,我发现是其他模型都继承了BaseModel,在其他模型里定义了forward。 菜鸡献丑了