未验证 提交 232fe0f5 编写于 作者: J Javier 提交者: GitHub

Merge pull request #10 from jin530/patch-1

Update wide_deep.py
......@@ -131,7 +131,11 @@ class WideDeep(nn.Module):
if self.deephead is None:
if head_layers is not None:
input_dim: int = self.deepdense.output_dim + self.deeptext.output_dim + self.deepimage.output_dim # type:ignore
input_dim: int = self.deepdense.output_dim # type:ignore
if self.deeptext is not None:
input_dim += self.deeptext.output_dim
if self.deepimage is not None:
input_dim += self.deepimage.output_dim
head_layers = [input_dim] + head_layers
if not head_dropout:
head_dropout = [0.0] * (len(head_layers) - 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册