Thanks.m0 is a module.I need to judge whether the name of m0 is ‘conv1’.
for layer_id in range(len(model)):
    m1 = new_modules[layer_id]
    if isinstance(m0, nn.Conv2d):
       if m0.name == 'conv1':   # m0.name is a kind of expression, I don't know how to call it.
            idx1 = [0, 1]

This is the judgment I need to make.