-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
AttributeError: 'TransformerDecoderLayerOptimal' object has no attribute 'self_attn' #82
Comments
I have meet the same question. |
It has been resolved when I change Pytorch version from 2.1.1 to 1.13.1. |
But when i do that i have the error : "ModuleNotFoundError : No module named 'torch._dynamo'... |
Did you solve that ? |
I don't have that problem. I can run this project after change Pytorch version. |
Found a fix. Use vanilla ML_Decoder/src_files/ml_decoder/ml_decoder.py Line 124 in 8a9e984
layer_decode = nn.TransformerDecoderLayer(
d_model=decoder_embedding,
nhead=8,
dim_feedforward=dim_feedforward,
dropout=decoder_dropout
)
|
Install PyTorch 1.7 to solve the issue |
When i try to train the model on MSCOCO2014, i have this error that i can't fix : AttributeError: 'TransformerDecoderLayerOptimal' object has no attribute 'self_attn'... what should i do ?
The text was updated successfully, but these errors were encountered: