Skip to content

Commit

Permalink
change initial value of rezero parameter to 1e-3 per @fcampagne sugge…
Browse files Browse the repository at this point in the history
…stion
  • Loading branch information
lucidrains committed Nov 17, 2020
1 parent 5e9e9b8 commit aa726b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion performer_pytorch/performer_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def forward(self, q, k, v):
class ReZero(nn.Module):
def __init__(self, fn):
super().__init__()
self.g = nn.Parameter(torch.zeros(1))
self.g = nn.Parameter(torch.tensor(1e-3))
self.fn = fn

def forward(self, x, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name = 'performer-pytorch',
packages = find_packages(exclude=['examples']),
version = '0.9.1',
version = '0.9.2',
license='MIT',
description = 'Performer - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit aa726b5

Please sign in to comment.