diff options
| author | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 06:46:33 -0500 |
|---|---|---|
| committer | YurenHao0426 <Blackhao0426@gmail.com> | 2026-07-21 06:46:33 -0500 |
| commit | 5255166d13c46402deb2b43cfeafd8953c787fec (patch) | |
| tree | 1b4b57215a506f2fe7f47843297660b9f4d63e67 /sdil/probes.py | |
| parent | 4856f33c47ae490d6688eef50db50a3d69766406 (diff) | |
fix: model somato-dendritic baseline per neuron
Diffstat (limited to 'sdil/probes.py')
| -rw-r--r-- | sdil/probes.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sdil/probes.py b/sdil/probes.py index 5489c6e..b58fe89 100644 --- a/sdil/probes.py +++ b/sdil/probes.py @@ -105,6 +105,8 @@ def _clone(net): n.b = [b.clone() for b in net.b] n.A = [a.clone() for a in net.A] n.P = [p.clone() for p in net.P] + n.P_bias = ([p.clone() for p in net.P_bias] + if getattr(net, "P_bias", None) is not None else None) n.Bnuis = [b.clone() for b in net.Bnuis] n.mW = [torch.zeros_like(w) for w in net.W] n.mb = [torch.zeros_like(b) for b in net.b] |
