Commit
·
afd2a56
1
Parent(s):
4b70498
feat(poly-norm): add default value for eps argument
Browse files
torch-ext/activation/layers.py
CHANGED
@@ -5,7 +5,7 @@ from .poly_norm import PolyNormFunction
|
|
5 |
|
6 |
|
7 |
class PolyNorm(nn.Module):
|
8 |
-
def __init__(self, eps):
|
9 |
super().__init__()
|
10 |
self.weight = torch.nn.Parameter(torch.ones(3) / 3)
|
11 |
self.bias = torch.nn.Parameter(torch.zeros(1))
|
|
|
5 |
|
6 |
|
7 |
class PolyNorm(nn.Module):
|
8 |
+
def __init__(self, eps=1e-6):
|
9 |
super().__init__()
|
10 |
self.weight = torch.nn.Parameter(torch.ones(3) / 3)
|
11 |
self.bias = torch.nn.Parameter(torch.zeros(1))
|