Open T-wow opened 1 month ago
@T-wow Fusion batchnorm only occurs in inference stage which was removed (by some reason). You can recover the fusion process to speed up inference, it will not affects anything in training stage.
@Hope1337 Thank you for your response. I have another question as well. In your program, is there a setting for freezing weights during training?
@T-wow yes, I added it few day ago. Look at new config file to see
def fuse_conv(conv, norm): fused_conv = torch.nn.Conv2d(conv.in_channels, conv.out_channels, kernel_size=conv.kernel_size, stride=conv.stride, padding=conv.padding, groups=conv.groups, bias=True).requiresgrad(False).to(conv.weight.device)