Yes,there is ,but  you  must   be  very   familiar  to   the  convolution  output_channel  and  input  channel, there  are  two  choice  :
1: (sequential   or  modulelist).add     written    in    a  for  loop
2:  you must  have  a look  about   resnet    and   hourglass,   they   are  very  classics   about  how  define  a  network