Hi, you mean how to convert fc weights to conv kernel’s weight? if so I did like below 45.
fc_net.conv.load_state_dict({"weight": resnet.fc.state_dict()["weight"].view(1000, 2048, 1, 1),
                             "bias": resnet.fc.state_dict()["bias"]})