Thank you all for the help in this fabulous forum.
I was a Torch user, and new to pytorch. Right now I want to do something like “skip connection”.
Below is the code I used in torch. How can I make a “skip connection” in pytorch
main = nn.Sequential()
...
local conc = nn.ConcatTable()
local conv = nn.Sequential()
conv:add(SpatialConvolution(...))
conc:add(nn.Identity())
conc:add(conv)
main:add(conc)
main:add(nn.CAddTable())