Skip to content

Commit

Permalink
address #21
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Feb 11, 2023
1 parent abb50a0 commit 5dc54a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions enformer_pytorch/modeling_enformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@ def __init__(self, dim, pool_size = 2):
super().__init__()
self.pool_size = pool_size
self.pool_fn = Rearrange('b d (n p) -> b d n p', p = pool_size)

self.to_attn_logits = nn.Conv2d(dim, dim, 1, bias = False)
nn.init.dirac_(self.to_attn_logits.weight)

def forward(self, x):
b, _, n = x.shape
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name = 'enformer-pytorch',
packages = find_packages(exclude=[]),
include_package_data = True,
version = '0.6.2',
version = '0.6.3',
license='MIT',
description = 'Enformer - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit 5dc54a8

Please sign in to comment.