What does “cell” mean in this context?
Based on your description, I assume you would like to index smaller “cells” in your grid and feed each one into your model.
If that’s the case, you would have to make sure the output size of layer2 stays the same, so that the in_features of self.fc1 don’t need to be changed.