I have two kinds of Tensor,
a = torch.LongTensor([1, 2, 3])
b = [torch.LongTensor([1, 1]), torch.LongTensor([2, 2]), torch.LongTensor([3,3])]

then, i want to do a operation like nn.MixtureTable in Torch.
c = something(a, b)
print(c)

result will be like this,
LongTensor - size: 1x2
c = [14, 14]

Are there any operation to do that? or, Do I have to implement this by myself?