I guess this line of code is raising this error, if classifier is undefined for m:
m.classifier[1].linear = bc

Your current code doesn’t call fuse_module_1 (besides recursively inside the method), so I’m unsure where this error is exactly raised.