You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你好,根据你提供的示例代码,我运行 WindowAttention类的“ dots += self.pos_embedding[self.relative_indices[:, :, 0],self.relative_indices[:, :, 1],self.relative_indices[:, :, 2]]”这句代码时报错了,显示“tensors used as indices must be long, byte or bool tensors”,请问你知道该怎么解决吗?
The text was updated successfully, but these errors were encountered:
你好,根据你提供的示例代码,我运行 WindowAttention类的“ dots += self.pos_embedding[self.relative_indices[:, :, 0],self.relative_indices[:, :, 1],self.relative_indices[:, :, 2]]”这句代码时报错了,显示“tensors used as indices must be long, byte or bool tensors”,请问你知道该怎么解决吗?
The text was updated successfully, but these errors were encountered: