Skip to content

Commit

Permalink
将cls的pos emb加上,没有任何影响
Browse files Browse the repository at this point in the history
  • Loading branch information
Tianrui-Li committed Dec 9, 2023
1 parent 293a8f2 commit 73561b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyskl/models/transformer/ST_JT.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def forward(self, x):
# prepend the cls token for source if needed
if self.cls_token is not None:
cls_token = self.cls_token.expand(x_input.size(0), -1, -1)
# cls_token = cls_token + self.pos_embed_cls
cls_token = cls_token + self.pos_embed_cls
x_input = torch.cat((cls_token, x_input), dim=1)

hidden_state = x_input
Expand Down

0 comments on commit 73561b0

Please sign in to comment.