fix(core): correct omega comment to match actual init behavior
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KAWnnPg2qvmLNySamE2k85
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user