Minibatch for FC layer

I can’t figure out how to make a minibatch for FC layer. Input FC does not accept batch_size.
Can you help figure it out? I have a large dataset and count each sample for a very long time.

We set batch_size at the network training stage. In fact, is it just the dimension of the array?

nn.Linear will accept input batches with the shape [batch_size, *, nb_features].
The standard use case would be just [batch_size, nb_features], where nb_features defines the number of features in each sample.
E.g. if your data only has a single feature, you should pass the input as [batch_size, 1].