We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
encoder_layer = nn.TransformerEncoderLayer( TypeError: init() got an unexpected keyword argument 'norm_first'
This will show an error after I delete it:
transformer_output = self.transformer_encoder(x) tgt_len, bsz, embed_dim = query.size() ValueError: not enough values to unpack (expected 3, got 2
I found that the shape of x in “transformer_output = self.transformer_encoder(x)” is torch.Size([132, 128])
The text was updated successfully, but these errors were encountered:
This seems to be highly related to the torch version, could you tell me the torch version used for the implementation?
Sorry, something went wrong.
I tried 2.0.1+cu117 and it worked smoothly
I got it. thank you so much
No branches or pull requests
encoder_layer = nn.TransformerEncoderLayer(
TypeError: init() got an unexpected keyword argument 'norm_first'
This will show an error after I delete it:
transformer_output = self.transformer_encoder(x)
tgt_len, bsz, embed_dim = query.size()
ValueError: not enough values to unpack (expected 3, got 2
I found that the shape of x in “transformer_output = self.transformer_encoder(x)” is torch.Size([132, 128])
The text was updated successfully, but these errors were encountered: