fix(core): correct omega comment to match actual init behavior
This commit is contained in:
1 parent
89e892f051
commit
dbc5d18a77
1 file changed
+3
-2
+3
-2
@@ -16,8 +16,9 @@ class AffectiveCPPN(nn.Module):
|
|||||||
super().__init__()
|
super().__init__()
|
||||||
self.l1 = nn.Linear(coord_dim + n_edge_types + context_dim, hidden)
|
self.l1 = nn.Linear(coord_dim + n_edge_types + context_dim, hidden)
|
||||||
self.l2 = nn.Linear(hidden, out_dim)
|
self.l2 = nn.Linear(hidden, out_dim)
|
||||||
# omega is the calibration knob for kernel bandwidth; default
|
# omega scales the sine pre-activation and sets the kernel bandwidth; it is
|
||||||
# Linear init cannot reach the ~1/sigma frequencies a local kernel needs.
|
# 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
|
self.omega = omega
|
||||||
|
|
||||||
def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor:
|
def forward(self, r: Tensor, edge_onehot: Tensor, context: Tensor) -> Tensor:
|
||||||
|
|||||||
Reference in new issue
Block a user