[Solution] TypeError: natten1dqkrpb() takes 4 positional arguments but 5 were given #20
Closed
havenpersona
started this conversation in
General
Replies: 1 comment
-
Hi Haven! The API of NATTEN was changed at some point. The issue should be fixed if you use the latest version of NATTEN. Please try! And feel free to reopen this if it doesn't work. Thanks :) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like some of you are facing the same issues I encountered. I was able to resolve this by making two changes to the code in ./models/dinat.py:
attention_scores = self.nattendqkrpb(query_layer, key_layer, self.rpb, self.kernel_size, self.dilation)
into
attention_scores = self.nattendqkrpb(query_layer, key_layer, self.rpb, self.dilation)
context_layer = self.nattendav(attention_probs, value_layer, self.kernel_size, self.dilation)
into
context_layer = self.nattendav(attention_probs, value_layer, self.dilation)
Beta Was this translation helpful? Give feedback.
All reactions