You can create as many convolutions as you want. You have to know beforehand how many do you need.
self.convolution_name_1 = nn.Conv2d(512, 1, 1)
self.convolution_name_2 = nn.Conv2d(512, 1, 1)

and so on