Skip to content

Commit

Permalink
#7
Browse files Browse the repository at this point in the history
  • Loading branch information
khirotaka committed Aug 15, 2020
1 parent 933a574 commit 6dd8268
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions enchanter/addons/layers/positional_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ def forward(self, x: torch.Tensor) -> torch.Tensor:
Args:
x: (N, E, L)
N ... batch size
E ... features
L ... seq len
- N ... batch size
- E ... features
- L ... seq len
Returns:
(N, E, L)
"""
Expand Down

0 comments on commit 6dd8268

Please sign in to comment.