Skip to content
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

Unexpected keyword argument 'batch_first' #4

Closed
LKRCharon opened this issue Mar 23, 2023 · 1 comment
Closed

Unexpected keyword argument 'batch_first' #4

LKRCharon opened this issue Mar 23, 2023 · 1 comment

Comments

@LKRCharon
Copy link

$ bash run_irra.sh

File "./IRRA-main/model/build.py", line 148, in build_model
    model = IRRA(args, num_classes)
  File "./IRRA-main/model/build.py", line 27, in __init__
    self.cross_attn = nn.MultiheadAttention(self.embed_dim,
TypeError: __init__() got an unexpected keyword argument 'batch_first'
@anosorae
Copy link
Owner

This is a Pytorch version issue, please upgrade your Pytorch to >= 1.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants