【发布时间】:2018-05-26 03:02:20
【问题描述】:
Simple multi-task network can be done here. 但我想要类似enter image description here 的东西。 现在我构建模型如下:
model = nn.Sequential()
model:add(nn.Linear(3,5))
prl1 = nn.ConcatTable()
prl1:add(nn.Linear(5,1))
prl2 = nn.ConcatTable()
prl2:add(nn.Linear(5,1))
prl2:add(nn.Linear(5,1))
prl1:add(prl2)
model:add(prl1)
我的输出是:
input = torch.rand(5,3)
output = model:forward(input)
output
{
1 : DoubleTensor - size: 5x1
2 :
{
1 : DoubleTensor - size: 5x1
2 : DoubleTensor - size: 5x1
}
}
我应该如何构建我的标准?
【问题讨论】: