Skip to content

Commit 82f9125

Browse files
authored
Improve documentation for sdm.nn.ResidualMLP (#1308)
1 parent c5ede45 commit 82f9125

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎sdm/nn/mlp.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,17 @@
99

1010

1111
class ResidualMLP(torch.nn.Module):
12-
"""A two-layer MLP with a learned linear residual projection.
12+
r"""Two-layer MLP with a learned linear residual projection.
13+
14+
.. math::
15+
16+
\operatorname{MLP}_2(x) + \operatorname{Linear}(x)
1317
1418
Args:
1519
in_channels: The number of input channels.
16-
hidden_channels: The number of hidden channels.
20+
hidden_channels: The number of hidden channels in the MLP.
1721
out_channels: The number of output channels.
18-
activation: The activation within the MLP.
22+
activation: The activation in the MLP.
1923
bias: Whether to learn additive biases.
2024
device: The device.
2125
dtype: The dtype.

0 commit comments

Comments
 (0)