Closed sahilrider closed 3 years ago
Hello!
here is the update: https://github.com/The-AI-Summer/self-attention-cv/blob/main/self_attention_cv/pos_embeddings/relative_pos_enc_qkv.py#L38
i added this line that solves the problem:
rel_indx = self.relative_index_2d.to(self.relative.device)
feel free to reopen the issue if you find anything suspicious.
The code is currently supported for cpu. I tried running for gpu but its given the following error in relative_pos_enc_qkv.py file. I tried making some changes to change device for inputs but its still not working.