Thank you for that. Is there a way to add add a  mobile.features[17].conv[0][3]? I want to insert a pooling layer after conv[0][0] that’s pushing everything down by 1.
I tried MobileNet.features[17].conv[0][3] but was told it was out of range, so I couldn’t create it.
I even tried manually entering everything in and got the error  cannot assign ‘tuple’ as child module ‘1’ (torch.nn.Module or None expected)
An example of what I tired and lead to that error: MobileNet.features[17].conv[1] = nn.Dropout(0.5), nn.LeakyReLU()
Now I know it is inside of ConvBNReLU(), but I don’t know how to code that nor could I find an example to figure out the syntax for that.