adithya1:

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 373. Look up for torch.cat on that page!