Skip to content

Commit

Permalink
fix queries projection having bias
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Dec 30, 2021
1 parent 9ac9d69 commit d0ca80e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion enformer_pytorch/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def __init__(
self.scale = dim_head ** -0.5
self.heads = heads
inner_dim = heads * dim_head
self.to_queries = nn.Linear(enformer_hidden_dim, inner_dim)
self.to_queries = nn.Linear(enformer_hidden_dim, inner_dim, bias = False)

self.null_key = nn.Parameter(torch.randn(inner_dim))
self.null_value = nn.Parameter(torch.randn(inner_dim))
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.1.18',
version = '0.1.19',
license='MIT',
description = 'Enformer - Pytorch',
author = 'Phil Wang',
Expand Down

0 comments on commit d0ca80e

Please sign in to comment.