Hi @ptrblck I have a question :
Why is it necessary to use torch.fx here ?
Is it possible to simply replace the selected layer with the customized one which will freeze the desired parameters ( using setattr(model, module_name, new_module)
) without losing the weights in the transition?