Skip to content

Commit 5dc54a8

Browse files
committed
address #21
1 parent abb50a0 commit 5dc54a8

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

enformer_pytorch/modeling_enformer.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ def __init__(self, dim, pool_size = 2):
136136
super().__init__()
137137
self.pool_size = pool_size
138138
self.pool_fn = Rearrange('b d (n p) -> b d n p', p = pool_size)
139+
139140
self.to_attn_logits = nn.Conv2d(dim, dim, 1, bias = False)
141+
nn.init.dirac_(self.to_attn_logits.weight)
140142

141143
def forward(self, x):
142144
b, _, n = x.shape

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
name = 'enformer-pytorch',
55
packages = find_packages(exclude=[]),
66
include_package_data = True,
7-
version = '0.6.2',
7+
version = '0.6.3',
88
license='MIT',
99
description = 'Enformer - Pytorch',
1010
author = 'Phil Wang',

0 commit comments

Comments
 (0)