Use variable.expand (2,4,50) to get something similar as with torch.cat in your example. If you really meant stack, throw in .unsqueeze and amend the dimensions in expand.
With the broadcasting functionality in master / the next release, you often don’t need to use expand.
Best regards
Thomas