Hi,
Both methods will have the exact same speed and memory footprint.
The only different is that one works with an existing dimension, while the other adds a new dimension.
You can see stack as just calling unsqueeze() on each tensor, then cat.