Thank you for your answer.
you mean i should use
torch.unsqueeze(target['a'], 0)

and then torch.cat the result?
cause when I do this it gives this error:

TypeError: unsqueeze(): argument ‘input’ (position 1) must be Tensor, not list

what other way is there to use torch.cat for this problem?