The batch are usually only for training, and in production you usually call the network with only one image but you still have to pass the sample as a batch tensor (ie [1,no_channels,h,w]). Think that internally the network works with only one sample and you pass a batch tensor to calculate the loss across all the samples in the batch, and next average them.
So, the network is always batch independent