Skip to content

Commit dc6918c

Browse files
committed
Merge docstrings
1 parent 0e35757 commit dc6918c

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

deepxde/utils/pytorch.py

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ class LLAAF(torch.nn.Module):
77
"""Pytorch implementation of layer-wise locally adaptive
88
activation functions (L-LAAF).
99
10+
Args:
11+
activation: The activation function to use.
12+
n: The scaling factor.
13+
1014
Examples:
1115
1216
To define a L-LAAF ReLU with the scaling factor ``n = 10``:
@@ -24,13 +28,6 @@ class LLAAF(torch.nn.Module):
2428
"""
2529

2630
def __init__(self, activation, n):
27-
"""
28-
Initialize the L-LAAF module.
29-
30-
Args:
31-
activation: The activation function to use.
32-
n: The scaling factor.
33-
"""
3431
super().__init__()
3532
self.activation = activation
3633
self.n = n

0 commit comments

Comments
 (0)