I want to make a class that could be any type of nn module (though right now I am using it to play around with only fully connected NNs while I learn pytorch). I was doing my class but now I’m getting python attribute errors e.g.:
*** AttributeError: 'NN' object has no attribute '_modules'

Which makes me think I am not calling the init method of something I clearly need to be calling. The example in the tutorials have as an example:
 super(TwoLayerNet, self).__init__()

but my FC NN might have more than 2 layers. Thus, I was wondering, is there some general super I can call that doesn’t restrict the types of NNs I might make? If not I’d like restrict to any type of feedforward NN (with convolutions or not). An example of the super I should call for an RNN would also be nice.