vraven.decompiler · function
patch_model
patch_model(model: 'nn.Module', interventions: 'Mapping[str, float | Callable[[torch.Tensor], torch.Tensor]]') -> 'PatchedModel'Create a causally patched PyTorch model with runtime intervention hooks.
Usage
from vraven.decompiler import patch_model
result = patch_model(... )
Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.