Skip to content

Commit

Permalink
Revert masking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
brainsqueeze committed Dec 29, 2019
1 parent 5734f68 commit 898445a
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 @@ -11,7 +11,7 @@

setup(
name="text2vec",
version="0.2",
version="0.1",
description="Building blocks for text vectorization and embedding",
author="Dave Hollander",
author_url="https://github.com/brainsqueeze",
Expand Down
2 changes: 1 addition & 1 deletion text2vec/models/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __call__(self, x, mask, training=False):
x = self.h_dropout(ffn(x), training=training) + x
x = self.layer_norm(x)

context = self.attention(x * mask)
context = self.attention(x)
if training:
return x, context
return context
Expand Down

0 comments on commit 898445a

Please sign in to comment.