Skip to content

Commit

Permalink
remove useless line
Browse files Browse the repository at this point in the history
  • Loading branch information
francoishernandez authored Jun 20, 2024
1 parent 9adfc68 commit 42aad09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions eole/modules/embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,9 @@ def forward(self, source, step=None):
if step == 0 or step is None:
# reset
self.past_length = 0
past_length = self.past_length # TODO
position_ids = torch.arange(
past_length,
source.size(-1) + past_length,
source.size(-1) + self.past_length,
dtype=torch.long,
device=source.device,
)
Expand Down

0 comments on commit 42aad09

Please sign in to comment.