I prefer to have the feature extractor and the ff parts taken apart, if you will put all the network together the outcome should be the same. But i won’t solve your problem since the linear part still needs as an input the incoming size.