fix(core): correct omega comment to match actual init behavior

This commit is contained in:
chrnx committed 2026-09-01 23:49:46 -05:00
1 parent 89e892f051
commit dbc5d18a77
1 file changed
+3 -2
+3 -2
View File
@@ -16,8 +16,9 @@ class AffectiveCPPN(nn.Module):
super().__init__()
self.l1 = nn.Linear(coord_dim + n_edge_types + context_dim, hidden)
self.l2 = nn.Linear(hidden, out_dim)
# omega is the calibration knob for kernel bandwidth; default
# Linear init cannot reach the ~1/sigma frequencies a local kernel needs.
# omega scales the sine pre-activation and sets the kernel bandwidth; it is
# a calibration knob that wants tuning against the domain's length scale
# (the particles domain's sigma). l1 deliberately keeps PyTorch's default init.
self.omega = omega
def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor: