vraven.darkside · function
inspect_internal_anatomy
inspect_internal_anatomy(model: 'nn.Module', inputs: 'Any', *, target: 'int | None', layer_names: 'Sequence[str] | None' = None, top_units: 'int' = 12, config: 'VRavenConfig | None' = None) -> 'AnalysisResult'Printable / plottable anatomy of Linear layers on one live forward pass.
For each selected ``nn.Linear`` layer with weight ``W`` and bias ``b``, and
captured pre-layer input ``a``:
* pre-activation output ``z = W a + b``
* input contribution proxy ``c = a ⊙ ∂||z||²/∂a``
* outgoing column energy ``||W[:, j]||₂`` and incoming row energy ``||W[j, :]||₂``
Claims are local and measurement-backed. They are not synaptic “reasoning”.
Usage
from vraven.darkside import inspect_internal_anatomy
result = inspect_internal_anatomy(... )
Source of truthThis page is generated from the checked-out public symbol, signature, and docstring. Pin the package version for reproducible work.