I am having an issue doing convolution on my 2d input i am converting to 3d for 1dConv. Essentially the sample is a vector of 10 numbers, and i am reshaping the vector to -> (miniBatchSize, 1, 10) right before i feed it to the network. This works, but when the loader loads  a batch size thats smaller than my batch size, the network complains in the first fully connected layer stating that the specified outfeatures dont match what was specified in the class of the network, and training errors out.
What seem like is happening is my 1D architecture seems to be dependent upon the batch size during training…I am able to change the batch size to 1, and the out features are correctly computed for a single sample. Once i raise the batch number, i get a mat mul error basically saying the first layer out features are  bigger than expected. I have not had this problem with 2d conv, why am i facing this issue?
I can train the network using a batch size of 1 but its not very effective…how do i train a 1d Conv with a specified batch size, and correctly calculate the outfeatures for any batch size ? I feel like the number of outfeatures should not change from using a higher batch size? assuming each batch is processed independently but it seems like this is not the case?