Skip to content

Commit

Permalink
embedding fix
Browse files Browse the repository at this point in the history
  • Loading branch information
microhum committed Jun 5, 2024
1 parent 830b664 commit 7e09329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ def __init__(self):
self.decoder_layers_parallel = clones(DecoderLayer(512, c(attn), c(attn), c(ff), dropout=0.0), 1)
self.decoder_norm_parallel = nn.LayerNorm(512)
if opts.ref_nshot == 52:
self.cls_embedding = nn.Embedding(92,512)
self.cls_embedding = nn.Embedding(96,512)
else:
self.cls_embedding = nn.Embedding(52,512)
self.cls_token = nn.Parameter(torch.zeros(1, 1, 512))
Expand Down

0 comments on commit 7e09329

Please sign in to comment.