It can’t solve my problem.m0 is a layer in my model.
if isinstance(m0, nn.Conv2d):
        for name,module in m0.named_modules():
            if 'conv1' in name:
                m1.weight.data = m0.weight.data.clone()