How can I remove the hooks if they are like this?
def register_hooks(self):
        """Register forward and backward hook to Conv module."""
        for module, name in self.conv_names.items():
            module.register_forward_hook(self.save_input_forward_hook)
            module.register_full_backward_hook(self.compute_fisher_backward_hook)

self.register_hooks()