Skip to content

Commit

Permalink
fix encoder feedforward glu
Browse files Browse the repository at this point in the history
  • Loading branch information
lucidrains committed Nov 6, 2020
1 parent 261d2c4 commit f91d9a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 = 'x-transformers',
packages = find_packages(exclude=['examples']),
version = '0.0.20',
version = '0.0.21',
license='MIT',
description = 'X-Transformers - Pytorch',
author = 'Phil Wang',
Expand Down
2 changes: 1 addition & 1 deletion x_transformers/x_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def forward(self, x, context = None, mask = None, context_mask = None, rel_pos =
return self.to_out(out)

class Encoder(nn.Module):
def __init__(self, dim, depth, dim_head = 64, heads = 8, use_scalenorm = False, ff_glu = False, rel_pos_bias = False, **kwargs):
def __init__(self, dim, depth, dim_head = 64, heads = 8, use_scalenorm = False, rel_pos_bias = False, **kwargs):
super().__init__()
self.dim = dim
self.layers = nn.ModuleList([])
Expand Down

0 comments on commit f91d9a2

Please sign in to comment.