MCPcopy Create free account
hub / github.com/RolnickLab/climart / forward

Method forward

climart/models/modules/mlp.py:94–98  ·  view source on GitHub ↗
(self, X: Tensor)

Source from the content-addressed store, hash-verified

92 print('MLP block with residual!')
93
94 def forward(self, X: Tensor) -> Tensor:
95 X_out = self.layer(X)
96 if self.residual:
97 X_out += X
98 return X_out

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected