0
Simple multi-task network can be done here.하지만이 같은 것을 원합니다. enter image description here. 지금은 아래와 같이 모델 구성 :torch7에서 다중 작업 학습을 수행하는 방법은 무엇입니까?
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
}
}
어떻게 기준을 구축해야합니까?
가 이 출력을 상기 네트워크 대신 nn.ConcatTable의1. 한 nn.Concat 될 수있는 N × M 개의 단순한 텐서 예컨대 : I는 두 단계를 알아낼