How to modify specific layers in a trained model?

Hi,

nn.Module which contains nn.Sequential have been constructed using OrderedDict so you can access those layers using same name you see:

mobile.features[17] = ...
mobile.features[18] = ...

Will give you the layers named 17 and 18 in features.

Bests