How to Concatenate Variables of different size?

Hi I am new to PyTorch I wanted to know how concatenate Variable of different size like 1x96x96x128 and 1x96x96x256 to single variable something like which is used squeezenet.pls help ? ty

Context would help. Why do you want concatenate them? What are these variables? Torch.cat(tensor1,tensor2,dimension) let’s you concatenate two tensors along a specified dimension. Here’s a link on how to use it - https://github.com/torch/torch7/blob/master/doc/maths.md. Look up for torch.cat on that page!

1 Like

These are the feature maps but anyway it worked , your link helped me out man thanks.

1 Like