Restore original model weights (after evaluation).
(self, model: nn.Module)
| 237 | param.data.copy_(self.shadow[name]) |
| 238 | |
| 239 | def restore(self, model: nn.Module): |
| 240 | """Restore original model weights (after evaluation).""" |
| 241 | # NOTE: This requires storing original weights separately. |
| 242 | # The caller should save model.state_dict() before calling apply(). |
| 243 | pass |
nothing calls this directly
no outgoing calls
no test coverage detected